Documentation TYPO3 par Ameos |
Public Member Functions | |
| parse ($string, $matchObj='') | |
| nextDivider () | |
| parseSub (&$setup) | |
| rollParseSub ($string, &$setup) | |
| getVal ($string, $setup) | |
| setVal ($string, &$setup, $value, $wipeOut=0) | |
| error ($err, $num=2) | |
| checkIncludeLines ($string) | |
| checkIncludeLines_array ($array) | |
| doSyntaxHighlight ($string, $lineNum='', $highlightBlockMode=0) | |
| regHighLight ($code, $pointer, $strlen=-1) | |
| syntaxHighlight_print ($lineNumDat, $highlightBlockMode) | |
Public Attributes | |
| $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' | |
Definition at line 80 of file class.t3lib_tsparser.php.
|
|
Checks the input string (un-parsed TypoScript) for include-commands ("<INCLUDE_TYPOSCRIPT: ....") Use: t3lib_TSparser::checkIncludeLines()
Definition at line 497 of file class.t3lib_tsparser.php. References t3lib_div::get_tag_attributes(), and t3lib_div::getFileAbsFileName(). Referenced by checkIncludeLines_array(), tx_tstemplateanalyzer::main(), and t3lib_TStemplate::procesIncludes(). |
|
|
Parses the string in each value of the input array for include-commands
Definition at line 541 of file class.t3lib_tsparser.php. References checkIncludeLines(). Referenced by t3lib_userAuthGroup::fetchGroupData(), t3lib_BEfunc::getPagesTSconfig(), and tslib_feUserAuth::getUserTSconf(). |
|
||||||||||||||||
|
Syntax highlight a TypoScript text Will parse the content. Remember, the internal setup array may contain invalid parsed content since conditions are ignored!
Definition at line 584 of file class.t3lib_tsparser.php. |
|
||||||||||||
|
Stacks errors/messages from the TypoScript parser into an internal array, $this->error If "TT" is a global object (as it is in the frontend when backend users are logged in) the message will be registered here as well.
Definition at line 485 of file class.t3lib_tsparser.php. Referenced by parse(), and parseSub(). |
|
||||||||||||
|
Get a value/property pair for an object path in TypoScript, eg. "myobject.myvalue.mysubproperty". Here: Used by the "copy" operator, <
Definition at line 413 of file class.t3lib_tsparser.php. Referenced by parseSub(). |
|
|
Will search for the next condition. When found it will return the line content (the condition value) and have advanced the internal $this->rawP pointer to point to the next line after the condition.
Definition at line 169 of file class.t3lib_tsparser.php. Referenced by parse(). |
|
||||||||||||
|
Start parsing the input TypoScript text piece. The result is stored in $this->setup
Definition at line 133 of file class.t3lib_tsparser.php. References error(), nextDivider(), and parseSub(). |
|
|
Parsing the $this->raw TypoScript lines from pointer, $this->rawP
Definition at line 185 of file class.t3lib_tsparser.php. References $setup, t3lib_div::callUserFunction(), error(), getVal(), regHighLight(), rollParseSub(), setVal(), t3lib_div::sysLog(), and t3lib_div::trimExplode(). Referenced by parse(). |
|
||||||||||||||||
|
Registers a part of a TypoScript line for syntax highlighting.
Definition at line 605 of file class.t3lib_tsparser.php. Referenced by parseSub(). |
|
||||||||||||
|
Parsing of TypoScript keys inside a curly brace where the key is composite of at least two keys, thus having to recursively call itself to get the value
Definition at line 389 of file class.t3lib_tsparser.php. Referenced by parseSub(). |
|
||||||||||||||||||||
|
Setting a value/property of an object string in the setup array.
Definition at line 439 of file class.t3lib_tsparser.php. Referenced by parseSub(). |
|
||||||||||||
|
Formatting the TypoScript code in $this->raw based on the data collected by $this->regHighLight in $this->highLightData
Definition at line 623 of file class.t3lib_tsparser.php. |
|
|
Initial value: array(
'prespace' => array('<span class="ts-prespace">','</span>'), // Space before any content on a line
'objstr_postspace' => array('<span class="ts-objstr_postspace">','</span>'), // Space after the object string on a line
'operator_postspace' => array('<span class="ts-operator_postspace">','</span>'), // Space after the operator on a line
'operator' => array('<span class="ts-operator">','</span>'), // The operator char
'value' => array('<span class="ts-value">','</span>'), // The value of a line
'objstr' => array('<span class="ts-objstr">','</span>'), // The object string of a line
'value_copy' => array('<span class="ts-value_copy">','</span>'), // The value when the copy syntax (<) is used; that means the object reference
'value_unset' => array('<span class="ts-value_unset">','</span>'), // The value when an object is unset. Should not exist.
'ignored' => array('<span class="ts-ignored">','</span>'), // The "rest" of a line which will be ignored.
'default' => array('<span class="ts-default">','</span>'), // The default style if none other is applied.
'comment' => array('<span class="ts-comment">','</span>'), // Comment lines
'condition' => array('<span class="ts-condition">','</span>'), // Conditions
'error' => array('<span class="ts-error">','</span>'), // Error messages
'linenum' => array('<span class="ts-linenum">','</span>'), // Line numbers
)
Definition at line 106 of file class.t3lib_tsparser.php. |
1.4.6