TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Configuration\TsConfigParser Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Configuration\TsConfigParser:
TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser t3lib_TSparser_TSconfig

Public Member Functions

 parseTSconfig ($TStext, $type, $id=0, array $rootLine=array())
 
- 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)
 

Protected Attributes

 $rootLine = array()
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
static checkIncludeLines ($string, $cycle_counter=1, $returnFiles=FALSE, $parentFilenameOrPath='')
 
static includeFile ($filename, $cycle_counter=1, $returnFiles=FALSE, &$newString='', array &$includedFiles=array(), $optionalProperties='', $parentFilenameOrPath='')
 
static checkIncludeLines_array (array $array)
 
static extractIncludes ($string, $cycle_counter=1, array $extractedFileNames=array(), $parentFilenameOrPath='')
 
static extractIncludes_array (array $array)
 
- Public Attributes inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
 $strict = 1
 
 $setup = array()
 
 $raw
 
 $rawP
 
 $lastComment = ''
 
 $commentSet = 0
 
 $multiLineEnabled = 0
 
 $multiLineObject = ''
 
 $multiLineValue = array()
 
 $inBrace = 0
 
 $lastConditionTrue = 1
 
 $sections = array()
 
 $sectionsMatch = array()
 
 $syntaxHighLight = 0
 
 $highLightData = array()
 
 $highLightData_bracelevel = array()
 
 $regComments = 0
 
 $regLinenumbers = 0
 
 $errors = array()
 
 $lineNumberOffset = 0
 
 $breakPointLN = 0
 
 $highLightStyles
 
 $highLightBlockStyles = ''
 
 $highLightBlockStyles_basecolor = '#cccccc'
 
 $parentObject
 
- Protected Member Functions inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
 executeValueModifier ($modifierName, $modifierArgument=NULL, $currentValue=NULL)
 
 parseNextKeySegment ($key)
 
- Static Protected Member Functions inherited from TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser
static includeDirectory ($dirPath, $cycle_counter=1, $returnFiles=FALSE, &$newString='', array &$includedFiles=array(), $optionalProperties='', $parentFilenameOrPath='')
 
static typoscriptIncludeError ($error)
 

Detailed Description

A TS-Config parsing class which performs condition evaluation

Author
Kraft Bernhard kraft.nosp@m.b@kr.nosp@m.aftb..nosp@m.at

Definition at line 24 of file TsConfigParser.php.

Member Function Documentation

◆ parseTSconfig()

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

Parses the passed TS-Config using conditions and caching

Parameters
string$TStextThe TSConfig being parsed
string$typeThe type of TSConfig (either "userTS" or "PAGES")
integer$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 40 of file TsConfigParser.php.

References TYPO3\CMS\Backend\Configuration\TsConfigParser\$rootLine, TYPO3\CMS\Backend\Utility\BackendUtility\getHash(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser\parse(), and TYPO3\CMS\Backend\Utility\BackendUtility\storeHash().

Member Data Documentation

◆ $rootLine

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