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

Class: Text_Wiki_Parse_Include

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

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Include

This class implements a Text_Wiki_Parse to include the results of a


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 41]
This class implements a Text_Wiki_Parse to include the results of a

script directly into the source at parse-time; thus, the output of the script will be parsed by Text_Wiki. This differs from the 'embed' rule, which incorporates the results at render-time, meaning that the 'embed' content is not parsed by Text_Wiki.

DANGER!

This rule is inherently not secure; it allows cross-site scripting to occur if the embedded output has <script> or other similar tags. Be careful.



[ Top ]


Class Variables

$conf = array(
        'base' => '/path/to/scripts/'
    )

[line 43]


Type:   mixed


[ Top ]

$file =  null

[line 47]


Type:   mixed


[ Top ]

$output =  null

[line 49]


Type:   mixed


[ Top ]

$regex =  '/(\[\[include )(.+?)( .+?)?(\]\])/i'

[line 64]

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

Type:   string


[ Top ]

$vars =  null

[line 51]


Type:   mixed


[ Top ]



Method Detail

process   [line 80]

The process( array &$matches)

Includes the results of the script directly into the source; the output will subsequently be parsed by the remaining Text_Wiki rules.
  • Return: results of the included script.
  • 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.