Public Member Functions | Public Attributes

XmlJsonConverter Class Reference

List of all members.

Public Member Functions

 toArray ($document)
 Returns an array out of a string or a DOMDocument itself.
 toJson ($document, $options=JSON_PRETTY_PRINT)
 Returns a JSON string out of a string or a DOMDocument itself.
 toXml (array $array, $root= 'bedita')
 Returns a DOMDocument out of an array.
 toXmlString (array $array, $root= 'bedita', $prettyPrint=true)
 Returns an XML string out of an array.

Public Attributes

const BEDITA_NS_URI = 'http://bedita.com/bedita'
 Namespace URI.

Detailed Description

Definition at line 22 of file xml_json_converter.php.


Member Function Documentation

XmlJsonConverter::toArray ( document  ) 

Returns an array out of a string or a DOMDocument itself.

Parameters:
string|DOMDocument $document
Returns:
array

Definition at line 42 of file xml_json_converter.php.

Referenced by toJson().

XmlJsonConverter::toJson ( document,
options = JSON_PRETTY_PRINT 
)

Returns a JSON string out of a string or a DOMDocument itself.

Parameters:
string|DOMDocument $document
int $options
Returns:
string

Definition at line 60 of file xml_json_converter.php.

References toArray().

XmlJsonConverter::toXml ( array $  array,
root = 'bedita' 
)

Returns a DOMDocument out of an array.

Parameters:
array $array
string $root
Returns:
DOMDocument

Definition at line 71 of file xml_json_converter.php.

Referenced by toXmlString().

XmlJsonConverter::toXmlString ( array $  array,
root = 'bedita',
prettyPrint = true 
)

Returns an XML string out of an array.

Parameters:
array $array
string $root
Returns:
string

Definition at line 86 of file xml_json_converter.php.

References toXml().


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus