[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

Text_Wiki_Rule_interwiki:: (4 méthodes):
  parse()
  process()
  processDescr()
  renderXhtml()


Classe: Text_Wiki_Rule_interwiki  - X-Ref

This class implements a Text_Wiki_Rule to find source text marked as
an Interwiki link.  See the regex for a detailed explanation of the
text matching procedure; e.g., "InterWikiName:PageName".

parse()   X-Ref
Parser.  We override the standard parser so we can
find both described interwiki links and standalone links.

return: void

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

'site' => The key name for the Text_Wiki interwiki array map,
usually the name of the interwiki site.

'page' => The page on the target interwiki to link to.

'text' => The text to display as the link.

param: array &$matches The array of matches from parse().
return: A delimited token to be used as a placeholder in

processDescr(&$matches)   X-Ref
Generates a replacement for described interwiki links. Token
options are:

'site' => The key name for the Text_Wiki interwiki array map,
usually the name of the interwiki site.

'page' => The page on the target interwiki to link to.

'text' => The text to display as the link.

param: array &$matches The array of matches from parse().
return: A delimited token to be used as a placeholder in

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