Public Method Details |
assoc |
public void assoc( string $tagname, integer $id_class )
|
|
Define an element.
|
Parameter |
|
string |
$tagname |
|
|
Element name. |
|
|
integer |
$id_class |
|
|
Element id. |
|
Returns |
void |
|
tags |
public void tags( string $names )
|
|
Register list of handlers that work with all element types.
|
Parameter |
|
string |
$names |
|
|
Space separated list of tag names. |
|
Returns |
void |
|
dirtag |
public void dirtag( string $ns, string $names )
|
|
Register directory type dependend functions.
|
Parameter |
|
|
|
string |
$names |
|
|
Space separated list of tag names. |
|
Returns |
void |
|
set_ref |
public void set_ref( object any &$objref )
|
|
Set object of element handlers.
|
Parameter |
|
|
Returns |
void |
|
set_context_func |
public void set_context_func( object any &$context_func )
|
|
Register context function.
|
Parameter |
|
object any |
&$context_func |
|
|
|
|
Returns |
void |
|
push_context |
public void push_context( )
|
|
Push context on stack.
|
Returns |
void |
|
pop_context |
public void pop_context( )
|
|
Pop context from stack.
|
Returns |
void |
|
&exec |
public string &exec( array &$branch, [ integer $id, integer $con ] )
|
|
Exec a document branch.
This function iterates over a document tree and calls the tag handlerdefined by assoc(), tag() and/or dirtag().
|
Parameter |
|
array |
&$branch |
|
|
Root node of a branch or tree. |
|
|
|
|
integer |
$con |
= >>0<< |
|
Initial context. |
|
Returns |
string Result from handler. |
|
&scan |
public array &scan( string &$data )
|
|
Create document tree from XML document.
A document tree is a nested array containing the following fields:'name': The tag name (non-optional). For a text block the name is#PCDATA, 'ns': the namespace, 'args': an array of arguments keyed byname, '_': an array of child blocks (more arrays of this type).Use exec() to execute a document tree.
|
Parameter |
|
string |
&$data |
|
|
XML document. |
|
Returns |
array Document tree. |
|