Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

t3lib_TSparser Class Reference

List of all members.

Public Member Functions

 parse ($string, $matchObj='')
 Start parsing the input TypoScript text piece.

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'

Member Function Documentation

t3lib_TSparser::parse string,
matchObj = ''
 

Start parsing the input TypoScript text piece.

The result is stored in $this->setup

Parameters:
string The TypoScript text
object If is object (instance of t3lib_matchcondition), then this is used to match conditions found in the TypoScript code. If matchObj not specified, then no conditions will work! (Except [GLOBAL])
Returns:
void

Definition at line 133 of file class.t3lib_tsparser.php.

References error(), and section().


Member Data Documentation

t3lib_TSparser::$breakPointLN = 0
 

Definition at line 105 of file class.t3lib_tsparser.php.

t3lib_TSparser::$commentSet = 0
 

Definition at line 88 of file class.t3lib_tsparser.php.

t3lib_TSparser::$errors = array()
 

Definition at line 103 of file class.t3lib_tsparser.php.

t3lib_TSparser::$highLightBlockStyles = ''
 

Definition at line 122 of file class.t3lib_tsparser.php.

t3lib_TSparser::$highLightBlockStyles_basecolor = '#cccccc'
 

Definition at line 123 of file class.t3lib_tsparser.php.

t3lib_TSparser::$highLightData = array()
 

Definition at line 97 of file class.t3lib_tsparser.php.

t3lib_TSparser::$highLightData_bracelevel = array()
 

Definition at line 98 of file class.t3lib_tsparser.php.

t3lib_TSparser::$highLightStyles
 

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.

t3lib_TSparser::$inBrace = 0
 

Definition at line 92 of file class.t3lib_tsparser.php.

t3lib_TSparser::$lastComment = ''
 

Definition at line 87 of file class.t3lib_tsparser.php.

t3lib_TSparser::$lastConditionTrue = 1
 

Definition at line 93 of file class.t3lib_tsparser.php.

t3lib_TSparser::$lineNumberOffset = 0
 

Definition at line 104 of file class.t3lib_tsparser.php.

t3lib_TSparser::$multiLineEnabled = 0
 

Definition at line 89 of file class.t3lib_tsparser.php.

t3lib_TSparser::$multiLineObject = ''
 

Definition at line 90 of file class.t3lib_tsparser.php.

t3lib_TSparser::$multiLineValue = array()
 

Definition at line 91 of file class.t3lib_tsparser.php.

t3lib_TSparser::$raw
 

Definition at line 85 of file class.t3lib_tsparser.php.

t3lib_TSparser::$rawP
 

Definition at line 86 of file class.t3lib_tsparser.php.

t3lib_TSparser::$regComments = 0
 

Definition at line 101 of file class.t3lib_tsparser.php.

t3lib_TSparser::$regLinenumbers = 0
 

Definition at line 102 of file class.t3lib_tsparser.php.

t3lib_TSparser::$sections = array()
 

Definition at line 94 of file class.t3lib_tsparser.php.

t3lib_TSparser::$sectionsMatch = array()
 

Definition at line 95 of file class.t3lib_tsparser.php.

t3lib_TSparser::$setup = Array()
 

Definition at line 84 of file class.t3lib_tsparser.php.

t3lib_TSparser::$strict = 1
 

Definition at line 81 of file class.t3lib_tsparser.php.

t3lib_TSparser::$syntaxHighLight = 0
 

Definition at line 96 of file class.t3lib_tsparser.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:07:29 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913