[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/t3lib/ -> class.t3lib_syntaxhl.php (sommaire)

Contains a class for various syntax highlighting. $Id: class.t3lib_syntaxhl.php 1421 2006-04-10 09:27:15Z mundaun $

Author: Kasper Skaarhoj <kasperYYYY@typo3.com>
Poids: 431 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

t3lib_syntaxhl:: (6 méthodes):
  highLight_DS()
  highLight_DS_markUpRecursively()
  highLight_FF()
  highLight_FF_markUpRecursively()
  getAllTags()
  splitXMLbyTags()


Classe: t3lib_syntaxhl  - X-Ref

Syntax Highlighting class.

highLight_DS($str)   X-Ref
Makes syntax highlighting of a Data Structure, <T3DataStructure>

param: string        Data Structure XML, must be valid since it's parsed.
return: string        HTML code with highlighted content. Must be wrapped in <PRE> tags

highLight_DS_markUpRecursively($struct,$parent='',$app='')   X-Ref
Making syntax highlighting of the parsed Data Structure XML.
Called recursively.

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

highLight_FF($str)   X-Ref
Makes syntax highlighting of a FlexForm Data, <T3FlexForms>

param: string        Data Structure XML, must be valid since it's parsed.
return: string        HTML code with highlighted content. Must be wrapped in <PRE> tags

highLight_FF_markUpRecursively($struct,$parent='',$app='')   X-Ref
Making syntax highlighting of the parsed FlexForm XML.
Called recursively.

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

getAllTags($str)   X-Ref
Returning all tag names found in XML/HTML input string

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

splitXMLbyTags($tagList,$str)   X-Ref
Splitting the input source by the tags listing in $tagList.
Called recursively.

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



Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics