XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
XmlParser Class Reference
Inheritance diagram for XmlParser:
XmlLangParser XmlQueryParser

Public Member Functions

 loadXmlFile ($filename)
 
 parse ($input= '', $arg1=NULL, $arg2=NULL)
 
 _tagOpen ($parser, $node_name, $attrs)
 
 _tagBody ($parser, $body)
 
 _tagClosed ($parser, $node_name)
 
 _arrToAttrsObj ($arr)
 

Public Attributes

 $oParser = NULL
 
 $input = NULL
 
 $output = array()
 
 $lang = "en"
 

Detailed Description

Definition at line 38 of file XmlParser.class.php.

Member Function Documentation

XmlParser::_arrToAttrsObj (   $arr)

Method to transfer values in an array to a data object

Parameters
array$arrdata array
Returns
Xml_Node_ object

Definition at line 229 of file XmlParser.class.php.

XmlParser::_tagBody (   $parser,
  $body 
)

Character data handler Variable in the last element of this->output

Parameters
resource$parsean instance of parser
string$bodya data to be added
Returns
void

Definition at line 175 of file XmlParser.class.php.

XmlParser::_tagClosed (   $parser,
  $node_name 
)

End element handler

Parameters
resource$parsean instance of parser
string$node_namename of xml node
Returns
void

Definition at line 187 of file XmlParser.class.php.

XmlParser::_tagOpen (   $parser,
  $node_name,
  $attrs 
)

Start element handler.

Parameters
resource$parsean instance of parser
string$node_namea name of node
array$attrsattributes to be set
Returns
array

Definition at line 159 of file XmlParser.class.php.

XmlParser::loadXmlFile (   $filename)

Load a xml file specified by a filename and parse it to Return the resultant data object

Parameters
string$filenamea file path of file
Returns
array Returns a data object containing data extracted from a xml file or NULL if a specified file does not exist

Definition at line 70 of file XmlParser.class.php.

XmlParser::parse (   $input = '',
  $arg1 = NULL,
  $arg2 = NULL 
)

Parse xml data to extract values from it and construct data object

Parameters
string$inputa data buffer containing xml data
mixed$arg1???
mixed$arg2???
Returns
array Returns a resultant data object or NULL in case of error

Definition at line 89 of file XmlParser.class.php.

Member Data Documentation

XmlParser::$input = NULL

Definition at line 51 of file XmlParser.class.php.

XmlParser::$lang = "en"

Definition at line 63 of file XmlParser.class.php.

XmlParser::$oParser = NULL

Definition at line 45 of file XmlParser.class.php.

XmlParser::$output = array()

Definition at line 57 of file XmlParser.class.php.


The documentation for this class was generated from the following file: