Squiz Matrix
4.12.2
|
Public Member Functions | |
getStringFromArray ($xml=NULL, $no_header=false) | |
getArrayFromFile ($xml_file) | |
getArrayFromString ($xml) | |
getElementContent (&$parent, $element_name, $default_value=NULL) | |
_getStringFromArrayInternal ($xml=NULL, $parent_tag=0) | |
close () | |
_reset () | |
startHandler ($xp, $elem, &$attribs) | |
endHandler ($xp, $elem) | |
cdataHandler ($xp, $data) | |
Data Fields | |
$array_xml | |
$indent_xml = false | |
$compact_array = false | |
$tag_level = 0 | |
Definition at line 54 of file xml_converter.inc.
_getStringFromArrayInternal | ( | $xml = NULL , |
|
$parent_tag = 0 |
|||
) |
Internal function to converts an xml-array into a string
mixed | $xml | part of a xml-array |
string | $parent_tag | name of the parent element |
Definition at line 191 of file xml_converter.inc.
_reset | ( | ) |
reset object, prepare it to be used
Definition at line 273 of file xml_converter.inc.
cdataHandler | ( | $xp, | |
$data | |||
) |
Element Content event handler for the XML parser No need to decode entities, the default php parser already does it.
Definition at line 335 of file xml_converter.inc.
close | ( | ) |
endHandler | ( | $xp, | |
$elem | |||
) |
End element event handler for the XML parser
Definition at line 310 of file xml_converter.inc.
getArrayFromFile | ( | $xml_file | ) |
Converts a file containing a xml-string into a xml-array
string | $xml_file | file name |
Definition at line 124 of file xml_converter.inc.
getArrayFromString | ( | $xml | ) |
Converts a xml-string into a xml-array
string | $xml | a well formed xml-string to convert |
Definition at line 147 of file xml_converter.inc.
getElementContent | ( | & | $parent, |
$element_name, | |||
$default_value = NULL |
|||
) |
Returns the content of an element
array() | &$parent the parent element as a xml-array | |
string | $element_name | element name |
boolean | $default_value | default value if the element doesn't exists |
Definition at line 169 of file xml_converter.inc.
getStringFromArray | ( | $xml = NULL , |
|
$no_header = false |
|||
) |
Converts a xml-array into a xml-string
array() | $xml xml-array to convert | |
boolean | $no_header | if true, add a xml header |
Definition at line 99 of file xml_converter.inc.
startHandler | ( | $xp, | |
$elem, | |||
& | $attribs | ||
) |
Start element event handler for the XML parser
Definition at line 291 of file xml_converter.inc.