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

Class: Text_Wiki_Parse_Wikilink

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

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Wikilink

Parse for links to wiki pages.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 45]
Parse for links to wiki pages.

Wiki page names are typically in StudlyCapsStyle made of WordsSmashedTogether.

You can also create described links to pages in this style: [WikiPageName nice text link to use for display]

The token options for this rule are:

'page' => the wiki page name.

'text' => the displayed link text.

'anchor' => a named anchor on the target wiki page.



[ Top ]


Class Variables

$conf = array (
                       'ext_chars' => false,
                       'utf-8' => false
    )

[line 47]


Type:   mixed


[ Top ]



Method Detail

Text_Wiki_Parse_Wikilink (Constructor)   [line 65]

Text_Wiki_Parse_Wikilink Text_Wiki_Parse_Wikilink( object &$obj)

Constructor.

We override the Text_Wiki_Parse constructor so we can explicitly comment each part of the $regex property.

  • Access: public

Parameters:

object   &$obj   —  The calling "parent" Text_Wiki object.

[ Top ]

parse   [line 115]

void parse( )

First parses for described links, then for standalone links.
  • Access: public

[ Top ]

process   [line 194]

A process( array &$matches)

Generate a replacement for standalone links.
  • Return: delimited token to be used as a placeholder in the source text, plus any text prior to the match.
  • Access: public

Parameters:

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

[ Top ]

processDescr   [line 158]

A processDescr( array &$matches)

Generate a replacement for described links.
  • Return: delimited token to be used as a placeholder in the source text, plus any text priot to the match.
  • Access: public

Parameters:

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

[ Top ]


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