Documentation TYPO3 par Ameos

t3lib_syntaxhl Class Reference

List of all members.

Public Member Functions

 highLight_DS ($str)
 highLight_DS_markUpRecursively ($struct, $parent='', $app='')
 highLight_FF ($str)
 highLight_FF_markUpRecursively ($struct, $parent='', $app='')
 getAllTags ($str)
 splitXMLbyTags ($tagList, $str)

Public Attributes

 $htmlParse
 $DS_wrapTags
 $FF_wrapTags

Detailed Description

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


Member Function Documentation

t3lib_syntaxhl::highLight_DS ( str  ) 

Makes syntax highlighting of a Data Structure, <T3DataStructure>

Parameters:
string Data Structure XML, must be valid since it's parsed.
Returns:
string HTML code with highlighted content. Must be wrapped in
 tags

Definition at line 156 of file class.t3lib_syntaxhl.php.

References getAllTags(), highLight_DS_markUpRecursively(), t3lib_div::makeInstance(), splitXMLbyTags(), and t3lib_div::xml2array().

t3lib_syntaxhl::highLight_DS_markUpRecursively ( struct,
parent = '',
app = '' 
)

Making syntax highlighting of the parsed Data Structure XML. Called recursively.

Parameters:
array The structure, see splitXMLbyTags()
string Parent tag.
string "Application" - used to denote if we are 'inside' a section
Returns:
string HTML

Definition at line 183 of file class.t3lib_syntaxhl.php.

Referenced by highLight_DS().

t3lib_syntaxhl::highLight_FF ( str  ) 

Makes syntax highlighting of a FlexForm Data, <T3FlexForms>

Parameters:
string Data Structure XML, must be valid since it's parsed.
Returns:
string HTML code with highlighted content. Must be wrapped in
 tags

Definition at line 268 of file class.t3lib_syntaxhl.php.

References getAllTags(), highLight_FF_markUpRecursively(), t3lib_div::makeInstance(), splitXMLbyTags(), and t3lib_div::xml2array().

t3lib_syntaxhl::highLight_FF_markUpRecursively ( struct,
parent = '',
app = '' 
)

Making syntax highlighting of the parsed FlexForm XML. Called recursively.

Parameters:
array The structure, see splitXMLbyTags()
string Parent tag.
string "Application" - used to denote if we are 'inside' a section
Returns:
string HTML

Definition at line 295 of file class.t3lib_syntaxhl.php.

Referenced by highLight_FF().

t3lib_syntaxhl::getAllTags ( str  ) 

Returning all tag names found in XML/HTML input string

Parameters:
string HTML/XML input
Returns:
array Array with all found tags (starttags only)

Definition at line 376 of file class.t3lib_syntaxhl.php.

Referenced by highLight_DS(), and highLight_FF().

t3lib_syntaxhl::splitXMLbyTags ( tagList,
str 
)

Splitting the input source by the tags listing in $tagList. Called recursively.

Parameters:
string Commalist of tags to split source by (into blocks, ALL being block-tags!)
string Input string.
Returns:
array Array with the content arranged hierarchically.

Definition at line 407 of file class.t3lib_syntaxhl.php.

Referenced by highLight_DS(), and highLight_FF().


Member Data Documentation

t3lib_syntaxhl::$DS_wrapTags

Initial value:

 array(
                'T3DataStructure' => array('<span style="font-weight: bold;">','</span>'),
                'type' => array('<span style="font-weight: bold; color: #000080;">','</span>'),
                'section' => array('<span style="font-weight: bold; color: #000080;">','</span>'),
                'el' => array('<span style="font-weight: bold; color: #800000;">','</span>'),
                'meta' => array('<span style="font-weight: bold; color: #800080;">','</span>'),
                '_unknown' => array('<span style="font-style: italic; color: #666666;">','</span>'),

                '_applicationTag' => array('<span style="font-weight: bold; color: #FF6600;">','</span>'),
                '_applicationContents' => array('<span style="font-style: italic; color: #C29336;">','</span>'),

                'sheets'  => array('<span style="font-weight: bold; color: #008000;">','</span>'),
                'parent:sheets' => array('<span style="color: #008000;">','</span>'),

                'ROOT' => array('<span style="font-weight: bold; color: #008080;">','</span>'),
                'parent:el' => array('<span style="font-weight: bold; color: #008080;">','</span>'),

                'langDisable' => array('<span style="color: #000080;">','</span>'),
                'langChildren' => array('<span style="color: #000080;">','</span>'),
        )

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

t3lib_syntaxhl::$FF_wrapTags

Initial value:

 array(
                'T3FlexForms' => array('<span style="font-weight: bold;">','</span>'),
                'meta' => array('<span style="font-weight: bold; color: #800080;">','</span>'),
                'data' => array('<span style="font-weight: bold; color: #800080;">','</span>'),
                'el' => array('<span style="font-weight: bold; color: #80a000;">','</span>'),
                'itemType' => array('<span style="font-weight: bold; color: #804000;">','</span>'),
                'section' => array('<span style="font-weight: bold; color: #604080;">','</span>'),
                'numIndex' => array('<span style="color: #333333;">','</span>'),
                '_unknown' => array('<span style="font-style: italic; color: #666666;">','</span>'),


                'sDEF'  => array('<span style="font-weight: bold; color: #008000;">','</span>'),
                'level:sheet' => array('<span style="font-weight: bold; color: #008000;">','</span>'),

                'lDEF'  => array('<span style="font-weight: bold; color: #000080;">','</span>'),
                'level:language' => array('<span style="font-weight: bold; color: #000080;">','</span>'),

                'level:fieldname' => array('<span style="font-weight: bold; color: #666666;">','</span>'),

                'vDEF'  => array('<span style="font-weight: bold; color: #008080;">','</span>'),
                'level:value' => array('<span style="font-weight: bold; color: #008080;">','</span>'),

                'currentSheetId' => array('<span style="color: #000080;">','</span>'),
                'currentLangId' => array('<span style="color: #000080;">','</span>'),
        )

Definition at line 111 of file class.t3lib_syntaxhl.php.


The documentation for this class was generated from the following file:


Généré par TYPO3 Ameos avec  doxygen 1.4.6