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

Class: Text_Wiki_Parse_Plugin

Source Location: /Text_Wiki_Tiki-0.1.0/Text/Wiki/Parse/Tiki/Plugin.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Plugin

This class parses plugins for tikiwiki and replace them with the produced markup Plugins are defined by {NAME(param=>val, ...)}...data...{NAME} (parameters optional) They can nest and produce plugins themselves


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 31]
This class parses plugins for tikiwiki and replace them with the produced markup Plugins are defined by {NAME(param=>val, ...)}...data...{NAME} (parameters optional) They can nest and produce plugins themselves


[ Top ]


Class Variables

$conf = array (
        'file_prefix' => 'wikiplugin_',
        'file_extension' => '.php',
        'file_path' => 'lib/wiki-plugins/'
    )

[line 40]

Configurations keys, the script's name of the plugin will be prefixed and an extension added the path is a comma separated list of directories where to find it
  • Access: public

Type:   string


[ Top ]

$regex =  '#(?:\{([A-Z]+?)\((.*?)\)}|(~pp~)|(~np~)|(<pre>))
                  ((?:(?R)|.)*?)
                  (?(1)\{\1})(?(3)~/pp~)(?(4)~/np~)(?(5)</pre>)#mixs'

[line 66]

The regular expression used to find source text matching this rule.
  • Access: public

Type:   string


[ Top ]

$regexArgs =  '#(\w+?)=(?:>|>)?([^"\'][^,]+?|"[^"]+"|\'[^\']+\')#'

[line 52]

The regular expression used in second stage to find plugin's arguments
  • Access: public

Type:   string


[ Top ]



Method Detail

process   [line 85]

A process( array &$matches)

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

'text' => The full matched text, not including the tags.

  • 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:32:44 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.