‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Configuration\TsConfigParser Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Configuration\TsConfigParser:
TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser

Public Member Functions

 __construct ()
 
array parseTSconfig ($TStext, $type, $id=0, array $rootLine=[])
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
 parse ($string, $matchObj='')
 
array getVal ($string, $setup)
 
string doSyntaxHighlight ($string, $lineNum='', $highlightBlockMode=false)
 

Public Attributes

int $id
 
string $type
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
array $setup = array( )
 
array $sections = array( )
 
array $sectionsMatch = array( )
 
bool $regComments = false
 
bool $regLinenumbers = false
 
array $errors = array( )
 
int $lineNumberOffset = 0
 
int $breakPointLN = 0
 
TYPO3 CMS Core TypoScript ExtendedTemplateService $parentObject
 

Protected Member Functions

array parseWithConditions ($TSconfig)
 
array matching (array $cc)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
string nextDivider ()
 
string parseSub (array &$setup)
 
string null executeValueModifier ($modifierName, $modifierArgument=null, $currentValue=null)
 
string rollParseSub ($string, array &$setup)
 
 setVal ($string, array &$setup, $value, $wipeOut=false)
 
array parseNextKeySegment ($key)
 
 error ($err, $num=2)
 
 regHighLight ($code, $pointer, $strlen=-1)
 
string syntaxHighlight_print ($lineNumDat, $highlightBlockMode)
 
TimeTracker getTimeTracker ()
 
string modifyHTMLColor ($color, $R, $G, $B)
 
string modifyHTMLColorAll ($color, $all)
 

Protected Attributes

array $rootLine = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
string[] $raw
 
int $rawP
 
string $lastComment = ''
 
bool $commentSet = false
 
bool $multiLineEnabled = false
 
string $multiLineObject = ''
 
array $multiLineValue = array( )
 
int $inBrace = 0
 
bool $lastConditionTrue = true
 
bool $syntaxHighLight = false
 
array $highLightData = array( )
 
array $highLightData_bracelevel = array( )
 
array $highLightStyles
 
string $highLightBlockStyles = ''
 
string $highLightBlockStyles_basecolor = '#cccccc'
 

Additional Inherited Members

- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
static string array checkIncludeLines ($string, $cycle_counter=1, $returnFiles=false, $parentFilenameOrPath='')
 
static includeFile ($filename, $cycle_counter=1, $returnFiles=false, &$newString='', array &$includedFiles=[], $optionalProperties='', $parentFilenameOrPath='')
 
static array checkIncludeLines_array (array $array)
 
static string extractIncludes ($string, $cycle_counter=1, array $extractedFileNames=[], $parentFilenameOrPath='')
 
static array extractIncludes_array (array $array)
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
static string addImportsFromExternalFiles ($typoScript, $cycleCounter, $returnFiles, &$includedFiles, &$parentFilenameOrPath)
 
static string importExternalTypoScriptFile ($filename, $cycleCounter, $returnFiles, array &$includedFiles)
 
static includeDirectory ($dirPath, $cycle_counter=1, $returnFiles=false, &$newString='', array &$includedFiles=[], $optionalProperties='', $parentFilenameOrPath='')
 
static string typoscriptIncludeError ($error)
 
static LoggerInterface getLogger ()
 

Detailed Description

A TS-Config parsing class which performs condition evaluation

Deprecated:
‪Should not be used anymore. See the PageTsConfigParser class, which has a more straightforward API. This class will be removed in TYPO3 v11.0.

Definition at line 28 of file TsConfigParser.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Configuration\TsConfigParser::__construct ( )

Definition at line 44 of file TsConfigParser.php.

Member Function Documentation

◆ matching()

array TYPO3\CMS\Backend\Configuration\TsConfigParser::matching ( array  $cc)
protected

Is just going through an array of conditions to determine which are matching (for getting correct cache entry)

Parameters
array$cc‪An array containing the sections to match
Returns
‪array The input array with matching sections filled into the "match" key

Definition at line 138 of file TsConfigParser.php.

Referenced by TYPO3\CMS\Backend\Configuration\TsConfigParser\parseTSconfig().

◆ parseTSconfig()

array TYPO3\CMS\Backend\Configuration\TsConfigParser::parseTSconfig (   $TStext,
  $type,
  $id = 0,
array  $rootLine = [] 
)

Parses the passed TS-Config using conditions and caching

Parameters
string$TStext‪The TSConfig being parsed
string$type‪The type of TSConfig (either "userTS" or "PAGES")
int$id‪The uid of the page being handled
array$rootLine‪The rootline of the page being handled
Returns
‪array Array containing the parsed TSConfig and a flag whether the content was retrieved from cache

Definition at line 58 of file TsConfigParser.php.

References TYPO3\CMS\Backend\Configuration\TsConfigParser\$id, TYPO3\CMS\Backend\Configuration\TsConfigParser\$rootLine, TYPO3\CMS\Backend\Configuration\TsConfigParser\$type, TYPO3\CMS\Backend\Configuration\TsConfigParser\matching(), and TYPO3\CMS\Backend\Configuration\TsConfigParser\parseWithConditions().

◆ parseWithConditions()

array TYPO3\CMS\Backend\Configuration\TsConfigParser::parseWithConditions (   $TSconfig)
protected

Does the actual parsing using the parent objects "parse" method. Creates the match-Object

Parameters
string$TSconfig‪The TSConfig being parsed
Returns
‪array Array containing the parsed TSConfig, the encountered sections, the matched sections

Definition at line 118 of file TsConfigParser.php.

References TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\$sections, TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\$sectionsMatch, TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\$setup, and TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\parse().

Referenced by TYPO3\CMS\Backend\Configuration\TsConfigParser\parseTSconfig().

Member Data Documentation

◆ $id

int TYPO3\CMS\Backend\Configuration\TsConfigParser::$id

The uid of the page being handled

Definition at line 38 of file TsConfigParser.php.

Referenced by TYPO3\CMS\Backend\Configuration\TsConfigParser\parseTSconfig().

◆ $rootLine

array TYPO3\CMS\Backend\Configuration\TsConfigParser::$rootLine = array( )
protected

◆ $type

string TYPO3\CMS\Backend\Configuration\TsConfigParser::$type