[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

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


Classe: Text_Wiki_Parse_List  - X-Ref

This class implements a Text_Wiki_Parse to find source text marked as
a bulleted or numbered list.  In short, if a line starts with '* ' then
it is a bullet list item; if a line starts with '# ' then it is a
number list item.  Spaces in front of the * or # indicate an indented
sub-list.  The list items must be on sequential lines, and may be
separated by blank lines to improve readability.  Using a non-* non-#
non-whitespace character at the beginning of a line ends the list.

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

'type' =>
'bullet_start' : the start of a bullet list
'bullet_end'   : the end of a bullet list
'number_start' : the start of a number list
'number_end'   : the end of a number list
'item_start'   : the start of item text (bullet or number)
'item_end'     : the end of item text (bullet or number)
'unknown'      : unknown type of list or item

'level' => the indent level (0 for the first level, 1 for the
second, etc)

'count' => the list item number at this level. not needed for
xhtml, but very useful for PDF and RTF.

param: array &$matches The array of matches from parse().
return: A series of text and delimited tokens marking the different



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