public
array
|
#
toArray( string|DOMDocument $document )
Returns an array out of a string or a DOMDocument itself.
Returns an array out of a string or a DOMDocument itself.
Parameters
Returns
array
|
public
string
|
#
toJson( string|DOMDocument $document, integer $options = JSON_PRETTY_PRINT )
Returns a JSON string out of a string or a DOMDocument itself.
Returns a JSON string out of a string or a DOMDocument itself.
Parameters
Returns
string
|
public
DOMDocument
|
#
toXml( array $array, string $root = 'bedita' )
Returns a DOMDocument out of an array.
Returns a DOMDocument out of an array.
Parameters
Returns
DOMDocument
|
public
string
|
#
toXmlString( array $array, string $root = 'bedita', $prettyPrint = true )
Returns an XML string out of an array.
Returns an XML string out of an array.
Parameters
- $array
- $root
- $prettyPrint
Returns
string
|
private
|
#
pushVal( array & $array, array & $counter, string $index, mixed $value, boolean $forceArray = false )
Pushes $value in $array at the selected $index with multiplicity $counter[$index] .
Pushes $value in $array at the selected $index with multiplicity $counter[$index] .
Parameters
- $array
- $counter
- $index
- $value
- $forceArray
|
private
array
|
#
nodeToArray( DOMNode $node, integer $depth = 0 )
Converts a DOM Node to an associative array.
Converts a DOM Node to an associative array.
Parameters
Returns
array
|
private
boolean
|
#
numericKeys( array $array )
Checks whether an array has only numeric keys.
Checks whether an array has only numeric keys.
Parameters
Returns
boolean
|
private
|
#
arrayToNode( DOMNode $node, mixed $array, integer $depth = 0 )
Converts an array to a DOM Node.
Converts an array to a DOM Node.
Parameters
Returns
|