Cheetah
Public Member Functions | List of all members
ChXml Class Reference

Public Member Functions

 createParser ()
 
 getAttribute ($sXmlContent, $sXmlTag, $sXmlAttribute)
 
 getAttributes ($sXmlContent, $sXmlTagName, $sXmlTagIndex=-1)
 
 getTags ($sXmlContent, $sXmlTagName, $iXmlTagIndex=-1)
 
 getValues ($sXmlContent, $sXmlTagName)
 
 setValues ($sXmlContent, $sXmlTagName, $aKeyValues)
 
 addValues ($sXmlContent, $sXmlTagName, $aKeyValues)
 
 getContent ($aValues=array())
 

Detailed Description

This work, "Cheetah - https://www.cheetahwsb.com", is a derivative of "Dolphin Pro V7.4.2" by BoonEx Pty Limited - https://www.boonex.com/, used under CC-BY. "Cheetah" is licensed under CC-BY by Dean J. Bassett Jr. CC-BY License - http://creativecommons.org/licenses/by/3.0/ This class is needed to work with XML files.

Definition at line 11 of file xml.inc.php.

Member Function Documentation

◆ addValues()

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

Adds given values to XML content.

Definition at line 122 of file xml.inc.php.

◆ createParser()

ChXml::createParser ( )

Definition at line 13 of file xml.inc.php.

◆ getAttribute()

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

Get the value of specified attribute for specified tag.

Definition at line 21 of file xml.inc.php.

◆ getAttributes()

ChXml::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-attlibutes

Definition at line 34 of file xml.inc.php.

◆ getContent()

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

get content in XML format from given values array

Definition at line 147 of file xml.inc.php.

◆ getTags()

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

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

Definition at line 60 of file xml.inc.php.

◆ getValues()

ChXml::getValues (   $sXmlContent,
  $sXmlTagName 
)

Gets the values of the given tag.

Definition at line 83 of file xml.inc.php.

◆ setValues()

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

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

Definition at line 102 of file xml.inc.php.


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