[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/bundled-libs/Text/Wiki/Parse/Default/ -> Toc.php (sommaire)

(pas de description)

Poids: 112 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Text_Wiki_Parse_Toc:: (1 méthode):
  process()


Classe: Text_Wiki_Parse_Toc  - X-Ref

This class implements a Text_Wiki_Parse to find all heading tokens and
build a table of contents.  The [[toc]] tag gets replaced with a list
of all the level-2 through level-6 headings.

process(&$matches)   X-Ref
Generates a replacement for the matched text.

Token options are:

'type' => ['list_start'|'list_end'|'item_start'|'item_end'|'target']

'level' => The heading level (1-6).

'count' => Which entry number this is in the list.

param: array &$matches The array of matches from parse().
return: string A token indicating the TOC collection point.



Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics