[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/bundled-libs/Text/Wiki/Rule/ -> tt.php (sommaire)

(pas de description)

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

Définit 1 class

Text_Wiki_Rule_tt:: (2 méthodes):
  process()
  renderXhtml()


Classe: Text_Wiki_Rule_tt  - X-Ref

This class implements a Text_Wiki_Rule to find source text marked for
teletype (monospace) as defined by text surrounded by two curly
braces. On parsing, the text itself is left in place, but the starting
and ending instances of curly braces are replaced with tokens.

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

'type' => ['start'|'end'] The starting or ending point of the
teletype text.  The text itself is left in the source.

param: array &$matches The array of matches from parse().
return: string A pair of delimited tokens to be used as a

renderXhtml($options)   X-Ref
Renders a token into text matching the requested format.

param: array $options The "options" portion of the token (second
return: string The text rendered from the token options.



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