TYPO3  7.6
Public Member Functions | Public Attributes | Protected Attributes | List of all members
TsConfigParser Class Reference
Inheritance diagram for TsConfigParser:
TypoScriptParser

Public Member Functions

 parseTSconfig ($TStext, $type, $id=0, array $rootLine=array())
 
- Public Member Functions inherited from 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 TypoScriptParser
 $strict = true
 
 $setup = array()
 
 $raw
 
 $rawP
 
 $lastComment = ''
 
 $commentSet = false
 
 $multiLineEnabled = false
 
 $multiLineObject = ''
 
 $multiLineValue = array()
 
 $inBrace = 0
 
 $lastConditionTrue = true
 
 $sections = array()
 
 $sectionsMatch = array()
 
 $syntaxHighLight = false
 
 $highLightData = array()
 
 $highLightData_bracelevel = array()
 
 $regComments = false
 
 $regLinenumbers = false
 
 $errors = array()
 
 $lineNumberOffset = 0
 
 $breakPointLN = 0
 
 $highLightStyles
 
 $highLightBlockStyles = ''
 
 $highLightBlockStyles_basecolor = '#cccccc'
 
 $parentObject
 

Protected Attributes

 $rootLine = array()
 

Additional Inherited Members

- Static Public Member Functions inherited from TypoScriptParser
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)
 
- Protected Member Functions inherited from TypoScriptParser
 executeValueModifier ($modifierName, $modifierArgument=null, $currentValue=null)
 
 parseNextKeySegment ($key)
 
 getTimeTracker ()
 
 modifyHTMLColor ($color, $R, $G, $B)
 
 modifyHTMLColorAll ($color, $all)
 
- Static Protected Member Functions inherited from 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

Definition at line 22 of file TsConfigParser.php.

Member Function Documentation

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")
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 TsConfigParser\$id, and TsConfigParser\$rootLine.

Member Data Documentation

$id

Definition at line 34 of file TsConfigParser.php.

Referenced by TsConfigParser\parseTSconfig().

$rootLine = array()
protected

Definition at line 27 of file TsConfigParser.php.

Referenced by TsConfigParser\parseTSconfig().