Solutions Open Source

Référence de la classe t3lib_syntaxhl

Liste de tous les membres

Fonctions membres publiques

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

Attributs publics

 $htmlParse
 $DS_wrapTags
 $FF_wrapTags


Documentation des fonctions membres

t3lib_syntaxhl::highLight_DS ( str  ) 

Makes syntax highlighting of a Data Structure, <T3DataStructure>

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

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

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

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

t3lib_syntaxhl::highLight_FF ( str  ) 

Makes syntax highlighting of a FlexForm Data, <T3FlexForms>

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

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

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

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

t3lib_syntaxhl::getAllTags ( str  ) 

Returning all tag names found in XML/HTML input string

Paramètres:
string HTML/XML input
Renvoie:
array Array with all found tags (starttags only)

t3lib_syntaxhl::splitXMLbyTags ( tagList,
str 
)

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

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


Documentation des données membres

t3lib_syntaxhl::$htmlParse

t3lib_syntaxhl::$DS_wrapTags

Valeur initiale :

 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>'),
        )

t3lib_syntaxhl::$FF_wrapTags

Valeur initiale :

 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>'),
        )


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:42:42 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3