Class Text_Wiki_Parse_Attribute

Description

$Horde: wicked/lib/Text_Wiki/Parse/Default/Attribute.php,v 1.1 2007/05/23 21:43:30 ben Exp $

This parser parses "attributes," which carry meta-information about the page. These attributes are in the form [[WikiWord: value]].

Located in /lib/Text_Wiki/Parse/Default/Attribute.php (line 10)

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Attribute
Variable Summary
 string $regex
Method Summary
 Text_Wiki_Parse_Attribute Text_Wiki_Parse_Attribute ( &$obj)
 A process (array &$matches)
Variables
string $regex (line 18)

The regular expression used to find source text matching this rule (this is set in the constructor).

Methods
Constructor Text_Wiki_Parse_Attribute (line 20)
Text_Wiki_Parse_Attribute Text_Wiki_Parse_Attribute ( &$obj)
  • &$obj
process (line 39)

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.

  • return: delimited token number to be used as a placeholder in the source text.
A process (array &$matches)
  • array &$matches: The array of matches from parse().

Documentation generated on Sun, 30 Jan 2011 05:42:54 +0000 by phpDocumentor 1.4.3