[ Index ]

PHP Cross Reference of MyBB 1.8.38

title

Body

[close]

/inc/ -> class_xmlparser.php (summary)

MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved Website: http://www.mybb.com License: http://www.mybb.com/about/license

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

Defines 1 class

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


Class: MyBBXMLParser  - 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.
param: string $data

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
return: array Completed tag array
param: array $thisvals Array of values from the current tag
param: array $vals Array of child nodes
param: int $i Internal counter
param: string $type Type of tag. Complete is a single line tag with attributes

get_children($vals, &$i)   X-Ref
Fetch the children for from a specific node array
return: array Array of child nodes
param: array $vals Array of children
param: int $i Internal counter

kill_tags($array)   X-Ref
Kill off unnecessary tags and return a clean array of XML data
return: array Cleaned array of XML data
param: array $array Array of parsed XML data



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref