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

Class: Text_Wiki_Parse_Delimiter

Source Location: /Text_Wiki_Creole-1.0.2/Text/Wiki/Parse/Creole/Delimiter.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Delimiter

Parses for Text_Wiki delimiter characters already in the source text.


Author(s):

Version:

  • $Id: Delimiter.php 222265 2006-10-23 13:11:27Z mic $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 24]
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.

  • Author: Paul M. Jones <pmjones@php.net>
  • Version: $Id: Delimiter.php 222265 2006-10-23 13:11:27Z mic $
  • License: LGPL


[ Top ]


Method Detail

Text_Wiki_Parse_Delimiter (Constructor)   [line 38]

Text_Wiki_Parse_Delimiter 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 ]

process   [line 60]

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 ]


Documentation generated on Mon, 11 Mar 2019 15:40:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.