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

Public Member Functions

 __construct ()
 
getInstance ()
 
parse_xml_query ($query_id, $xml_file, $cache_file)
 
 parse ($query_id=NULL, $xml_file=NULL, $cache_file=NULL)
 
 getXmlFileContent ($xml_file)
 
- Public Member Functions inherited from XmlParser
 loadXmlFile ($filename)
 
 parse ($input= '', $arg1=NULL, $arg2=NULL)
 
 _tagOpen ($parser, $node_name, $attrs)
 
 _tagBody ($parser, $body)
 
 _tagClosed ($parser, $node_name)
 
 _arrToAttrsObj ($arr)
 

Additional Inherited Members

- Public Attributes inherited from XmlParser
 $oParser = NULL
 
 $input = NULL
 
 $output = array()
 
 $lang = "en"
 

Detailed Description

Definition at line 20 of file XmlQueryParser.class.php.

Constructor & Destructor Documentation

XmlQueryParser::__construct ( )

constructor

Returns
void

Definition at line 27 of file XmlQueryParser.class.php.

Member Function Documentation

& XmlQueryParser::getInstance ( )

Create XmlQueryParser instance for Singleton

Returns
XmlQueryParser object

Definition at line 37 of file XmlQueryParser.class.php.

XmlQueryParser::getXmlFileContent (   $xml_file)

Returns XML file contents as an object or NULL in case of error

Parameters
$xml_file
Returns
array|NULL

Definition at line 100 of file XmlQueryParser.class.php.

XmlQueryParser::parse (   $query_id = NULL,
  $xml_file = NULL,
  $cache_file = NULL 
)

Override for parent "parse" method

Parameters
null$query_id
null$xml_file
null$cache_file
Returns
void

Definition at line 88 of file XmlQueryParser.class.php.

& XmlQueryParser::parse_xml_query (   $query_id,
  $xml_file,
  $cache_file 
)

Parses an XML query file

  1. Read xml file
  2. Check the action
  3. Parse and write cache file
Parameters
$query_id
$xml_file
$cache_file
Returns
QueryParser object

Definition at line 60 of file XmlQueryParser.class.php.


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