[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

Text_Wiki_Parse_Interwiki:: (3 méthodes):
  parse()
  process()
  processDescr()


Classe: Text_Wiki_Parse_Interwiki  - X-Ref

This class implements a Text_Wiki_Parse 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



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