Text_Wiki
[ class tree: Text_Wiki ] [ index: Text_Wiki ] [ all elements ]

Class: Text_Wiki_Parse_Delimiter

Source Location: /Text_Wiki_Cowiki-0.0.2/Text/Wiki/Parse/Cowiki/Delimiter.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Delimiter

Parses for Text_Wiki delimiter characters already in the source text.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 36]
Parses for Text_Wiki delimiter characters already in the source text.

This class implements a Text_Wiki_Parse to find instances of the delimiter character already embedded in the source text; it extracts them and replaces them with a delimited token, then renders them as the delimiter itself when the target format is XHTML.



[ Top ]


Method Detail

process   [line 72]

A process( array &$matches)

Generates a token entry for the matched text. Token options are:

'text' => The full matched text.

  • Return: delimited token number to be used as a placeholder in the source text.
  • Access: public

Parameters:

array   &$matches   —  The array of matches from parse().

[ Top ]

Text_Wiki_Parse_delimiter   [line 50]

void Text_Wiki_Parse_delimiter( object &$obj, string $name)

Constructor. Overrides the Text_Wiki_Parse constructor so that we can set the $regex property dynamically (we need to include the Text_Wiki $delim character.

Parameters:

object   &$obj   —  The calling "parent" Text_Wiki object.
string   $name   —  The token name to use for this rule.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:52:58 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.