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

Class: Text_Wiki_Parse_Wikilink

Source Location: /Text_Wiki-0.23.0/Text/Wiki/Parse/Wikilink.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Wikilink

Parse for links to wiki pages.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Text_Wiki_Parse

Text_Wiki_Parse::Text_Wiki_Parse()
Constructor for this parser rule.
Text_Wiki_Parse::getAttrs()
Extract 'attribute="value"' portions of wiki markup.
Text_Wiki_Parse::getConf()
Simple method to safely get configuration key values.
Text_Wiki_Parse::parse()
Abstrct method to parse source text for matches.
Text_Wiki_Parse::process()
Abstract method to generate replacements for matched text.

Class Details

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

$Id: Wikilink.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $



[ Top ]


Method Detail

Text_Wiki_Parse_Wikilink (Constructor)   [line 45]

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

void parse( )

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

Overrides Text_Wiki_Parse::parse() (Abstrct method to parse source text for matches.)
[ Top ]

process   [line 139]

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

Overrides Text_Wiki_Parse::process() (Abstract method to generate replacements for matched text.)

Parameters:

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

[ Top ]

processDescr   [line 111]

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 13:56:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.