[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/ -> class_xml.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license

File Size: 170 lines (4 kb)
Included or required: 8 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

XMLParser:: (5 methods):
  __construct()
  get_tree()
  build_tag()
  get_children()
  kill_tags()


Class: XMLParser  - X-Ref

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.

__construct($data)   X-Ref
Initialize the parser and store the XML data to be parsed.


get_tree()   X-Ref
Build a tree based structure based from the parsed data

return: array The tree based structure

build_tag($thisvals, $vals, &$i, $type)   X-Ref
Private: Build a completed tag by fetching all child nodes and attributes

param: array Array of values from the current tag
param: array Array of child nodes
param: int Internal counter
param: string Type of tag. Complete is a single line tag with attributes
return: array Completed tag array

get_children($vals, &$i)   X-Ref
Fetch the children for from a specific node array

param: array Array of children
param: int Internal counter
return: array Array of child nodes

kill_tags($array)   X-Ref
Kill off unnecessary tags and return a clean array of XML data

param: array Array of parsed XML data
return: array Cleaned array of XML data



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1