|
UNA
|
Public Member Functions | |
| __clone () | |
| getAttribute ($sXmlContent, $sXmlTag, $sXmlAttribute) | |
| getAttributes ($sXmlContent, $sXmlTagName, $sXmlTagIndex=-1) | |
| getTags ($sXmlContent, $sXmlTagName, $iXmlTagIndex=-1) | |
| getValues ($sXmlContent, $sXmlTagName, $sXmlAttrName='name') | |
| setValues ($sXmlContent, $sXmlTagName, $aKeyValues) | |
| addValues ($sXmlContent, $sXmlTagName, $aKeyValues) | |
| getContent ($aValues=array()) | |
Static Public Member Functions | |
| static | getInstance () |
Protected Attributes | |
| $rParser | |
|
protected |
Reimplemented from BxDolFactory.
| BxDolXmlParser::__clone | ( | ) |
Prevent cloning the instance
| BxDolXmlParser::addValues | ( | $sXmlContent, | |
| $sXmlTagName, | |||
| $aKeyValues ) |
Adds given values to XML content.
| BxDolXmlParser::getAttribute | ( | $sXmlContent, | |
| $sXmlTag, | |||
| $sXmlAttribute ) |
Get the value of specified attribute for specified tag.
| BxDolXmlParser::getAttributes | ( | $sXmlContent, | |
| $sXmlTagName, | |||
| $sXmlTagIndex = -1 ) |
Get an array of attributes for specified tag or an array of tags with the same name.
gets two-dimensional array of attributes. tags-attributes
| BxDolXmlParser::getContent | ( | $aValues = array() | ) |
get content in XML format from given values array
|
static |
Get singleton instance of the class
Implements iBxDolSingleton.
| BxDolXmlParser::getTags | ( | $sXmlContent, | |
| $sXmlTagName, | |||
| $iXmlTagIndex = -1 ) |
Get an array of tags or one tag if its index is specified.
| BxDolXmlParser::getValues | ( | $sXmlContent, | |
| $sXmlTagName, | |||
| $sXmlAttrName = 'name' ) |
Gets the values of the given tag with some attribute. 'name' is used as default attribute.
Usage: Input: <string name="string1">value1</string> <string name="string2">value2</string> <string name="string3">value3</string> Output: array( 'string1' => 'value1', 'string2' => 'value2', 'string3' => 'value3' )
| BxDolXmlParser::setValues | ( | $sXmlContent, | |
| $sXmlTagName, | |||
| $aKeyValues ) |
Sets the values of tag where attribute "key" equals to specified.