TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Configuration\TsConfigParser Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Configuration\TsConfigParser:
TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser

Public Member Functions

 parseTSconfig ($TStext, $type, $id=0, array $rootLine=[])
 
- Public Member Functions inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
 parse ($string, $matchObj='')
 
 nextDivider ()
 
 parseSub (array &$setup)
 
 rollParseSub ($string, array &$setup)
 
 getVal ($string, $setup)
 
 setVal ($string, array &$setup, $value, $wipeOut=false)
 
 error ($err, $num=2)
 
 doSyntaxHighlight ($string, $lineNum='', $highlightBlockMode=false)
 
 regHighLight ($code, $pointer, $strlen=-1)
 
 syntaxHighlight_print ($lineNumDat, $highlightBlockMode)
 

Public Attributes

 $id
 
- Public Attributes inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
 $strict = true
 
 $setup = []
 
 $raw
 
 $rawP
 
 $lastComment = ''
 
 $commentSet = false
 
 $multiLineEnabled = false
 
 $multiLineObject = ''
 
 $multiLineValue = []
 
 $inBrace = 0
 
 $lastConditionTrue = true
 
 $sections = []
 
 $sectionsMatch = []
 
 $syntaxHighLight = false
 
 $highLightData = []
 
 $highLightData_bracelevel = []
 
 $regComments = false
 
 $regLinenumbers = false
 
 $errors = []
 
 $lineNumberOffset = 0
 
 $breakPointLN = 0
 
 $highLightStyles
 
 $highLightBlockStyles = ''
 
 $highLightBlockStyles_basecolor = '#cccccc'
 
 $parentObject
 

Protected Attributes

 $rootLine = []
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
static includeFile ($filename, $cycle_counter=1, $returnFiles=false, &$newString='', array &$includedFiles=[], $optionalProperties='', $parentFilenameOrPath='')
 
static checkIncludeLines_array (array $array)
 
static extractIncludes ($string, $cycle_counter=1, array $extractedFileNames=[], $parentFilenameOrPath='')
 
static extractIncludes_array (array $array)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
 executeValueModifier ($modifierName, $modifierArgument=null, $currentValue=null)
 
 parseNextKeySegment ($key)
 
 getTimeTracker ()
 
 modifyHTMLColor ($color, $R, $G, $B)
 
 modifyHTMLColorAll ($color, $all)
 
- Static Protected Member Functions inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
static includeDirectory ($dirPath, $cycle_counter=1, $returnFiles=false, &$newString='', array &$includedFiles=[], $optionalProperties='', $parentFilenameOrPath='')
 
static typoscriptIncludeError ($error)
 

Detailed Description

A TS-Config parsing class which performs condition evaluation

Definition at line 22 of file TsConfigParser.php.

Member Function Documentation

◆ parseTSconfig()

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

Parses the passed TS-Config using conditions and caching

Parameters
string$TStextThe TSConfig being parsed
string$typeThe type of TSConfig (either "userTS" or "PAGES")
int$idThe uid of the page being handled
array$rootLineThe 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 45 of file TsConfigParser.php.

References TYPO3\CMS\Backend\Configuration\TsConfigParser\$id, TYPO3\CMS\Backend\Configuration\TsConfigParser\$rootLine, TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\$sections, TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\$sectionsMatch, TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\$setup, TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\parse().

Member Data Documentation

◆ $id

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

◆ $rootLine

TYPO3\CMS\Backend\Configuration\TsConfigParser::$rootLine = []
protected