Public Member Functions | Protected Member Functions

oxSimpleXml Class Reference

List of all members.

Public Member Functions

 objectToXml ($oInput, $sDocument)
 xmlToObject ($sXml)

Protected Member Functions

 _addSimpleXmlElement ($oXml, $oInput)

Detailed Description

The wrapper of simpleXML functions.

Definition at line 6 of file oxsimplexml.php.


Member Function Documentation

oxSimpleXml._addSimpleXmlElement ( oXml,
oInput 
) [protected]

Recursively adds $oInput object data to SimpleXMLElement structure

Parameters:
SimpleXMLElement $oXml Xml handler
string|array|object $oInput Input object
Returns:
SimpleXMLElement

Definition at line 16 of file oxsimplexml.php.

oxSimpleXml.objectToXml ( oInput,
sDocument 
)

Parses object structure to XML string

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>

Parameters:
object $oInput Input object
string $sDocument Document name.
Returns:
string

Definition at line 76 of file oxsimplexml.php.

oxSimpleXml.xmlToObject ( sXml  ) 

Parses XML string into object structure

Parameters:
string $sXml XML Input
Returns:
SimpleXMLElement

Definition at line 91 of file oxsimplexml.php.


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