OXID eShop CE
4.9.6
|
Public Member Functions | |
objectToXml ($oInput, $sDocument) | |
xmlToObject ($sXml) |
Protected Member Functions | |
_addSimpleXmlElement ($oXml, $oInput, $sPreferredKey=null) | |
_addChildNode ($oXml, $sKey, $mElement, $sPreferredKey=null) | |
_addNodeAttributes ($oNode, $aAttributes) |
Parses objects to XML and XML to simple XML objects.
Example object: oxStdClass Object ( [title] => TestTitle [keys] => oxStdClass Object ( [key] => Array ( [0] => testKey1 [1] => testKey2 ) ) )
would produce the following XML: <?xml version="1.0" encoding="utf-8"?> <testXml><title>TestTitle</title><keys><key>testKey1</key><key>testKey2</key></keys></testXml>
Definition at line 24 of file oxsimplexml.php.
|
protected |
Adds child node to given simple xml object.
SimpleXMLElement | $oXml | |
string | $sKey | |
string | array | object | $mElement | |
string | $sPreferredKey |
Definition at line 85 of file oxsimplexml.php.
|
protected |
Adds attributes to given node.
SimpleXMLElement | $oNode | |
array | $aAttributes |
Definition at line 117 of file oxsimplexml.php.
|
protected |
Recursively adds $oInput object data to SimpleXMLElement structure
SimpleXMLElement | $oXml | Xml handler |
string | array | object | $oInput | Input object |
string | $sPreferredKey | Key to use instead of node's key. |
Definition at line 64 of file oxsimplexml.php.
oxSimpleXml::objectToXml | ( | $oInput, | |
$sDocument | |||
) |
Parses object structure to XML string
object | $oInput | Input object |
string | $sDocument | Document name. |
Definition at line 35 of file oxsimplexml.php.
oxSimpleXml::xmlToObject | ( | $sXml | ) |
Parses XML string into object structure
string | $sXml | XML Input |
Definition at line 50 of file oxsimplexml.php.