[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

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


Classe: Text_Wiki_Rule_image  - X-Ref

This class implements a Text_Wiki_Rule to embed the contents of a URL
inside the page.  Typically used to get script output.

This rule is inherently not secure; it allows cross-site scripting to
occur if the embedded output has <script> or other similar tags.  Be
careful.

In the future, we'll add a rule config options to set the base embed
path so that it is limited to one directory.

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

'src' => The image source, typically a relative path name.

'opts' => Any macro options following the source.

param: array &$matches The array of matches from parse().
return: A delimited token number 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