Mybb 1.4.6
[ class tree: Mybb 1.4.6 ] [ index: Mybb 1.4.6 ] [ all elements ]

Class: XMLParser

Source Location: /inc/class_xml.php

Class Overview


The following class is based upon code by Eric Pollman @ http://eric.pollman.net/work/public_domain/ and is licensed under the public domain license.


Variables

Methods



Class Details

[line 18]
The following class is based upon code by Eric Pollman @ http://eric.pollman.net/work/public_domain/ and is licensed under the public domain license.



[ Top ]


Class Variables

$collapse_dups =  1

[line 21]


Type:   mixed


[ Top ]

$data =

[line 19]


Type:   mixed


[ Top ]

$index_numeric =  0

[line 22]


Type:   mixed


[ Top ]

$vals =

[line 20]


Type:   mixed


[ Top ]



Class Methods


constructor XMLParser [line 27]

XMLParser XMLParser( $data)

Initialize the parser and store the XML data to be parsed.



Parameters:

   $data  

[ Top ]

method build_tag [line 60]

array build_tag( array $thisvals, array $vals, int &$i, string $type)

Private: Build a completed tag by fetching all child nodes and attributes



Tags:

return:  Completed tag array


Parameters:

array   $thisvals   Array of values from the current tag
array   $vals   Array of child nodes
int   &$i   Internal counter
string   $type   Type of tag. Complete is a single line tag with attributes

[ Top ]

method get_children [line 86]

array get_children( array $vals, int &$i)

Fetch the children for from a specific node array



Tags:

return:  Array of child nodes


Parameters:

array   $vals   Array of children
int   &$i   Internal counter

[ Top ]

method get_tree [line 37]

array get_tree( )

Build a tree based structure based from the parsed data



Tags:

return:  The tree based structure


[ Top ]


Documentation generated on Wed, 27 May 2009 13:35:17 -0700 by phpDocumentor 1.4.1