UNA
Loading...
Searching...
No Matches
BxDolXmlParser Class Reference
Inheritance diagram for BxDolXmlParser:
BxDolFactory iBxDolSingleton

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
 

Constructor & Destructor Documentation

◆ __construct()

BxDolXmlParser::__construct ( )
protected

Reimplemented from BxDolFactory.

Member Function Documentation

◆ __clone()

BxDolXmlParser::__clone ( )

Prevent cloning the instance

◆ addValues()

BxDolXmlParser::addValues ( $sXmlContent,
$sXmlTagName,
$aKeyValues )

Adds given values to XML content.

◆ getAttribute()

BxDolXmlParser::getAttribute ( $sXmlContent,
$sXmlTag,
$sXmlAttribute )

Get the value of specified attribute for specified tag.

◆ getAttributes()

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

◆ getContent()

BxDolXmlParser::getContent ( $aValues = array())

get content in XML format from given values array

◆ getInstance()

static BxDolXmlParser::getInstance ( )
static

Get singleton instance of the class

Implements iBxDolSingleton.

◆ getTags()

BxDolXmlParser::getTags ( $sXmlContent,
$sXmlTagName,
$iXmlTagIndex = -1 )

Get an array of tags or one tag if its index is specified.

◆ getValues()

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' )

◆ setValues()

BxDolXmlParser::setValues ( $sXmlContent,
$sXmlTagName,
$aKeyValues )

Sets the values of tag where attribute "key" equals to specified.


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