Jump to content

Ocs-server/Gfx4/XML utilities: Difference between revisions

From KDE Community Wiki
Snizzo (talk | contribs)
No edit summary
Snizzo (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Gfx contains some XML utilities.
Gfx contains some XML utilities.


* '''static bool XMLParser::is_assoc($array)''' -> checks if $array is associative or not
* '''static bool EXMLParser::is_assoc($array)''' -> checks if $array is associative or not
* '''static array XMLParser::to_array($contents, $force_multiple=array())''' -> converts an xml tree to an associative array
* '''static array EXMLParser::to_array($contents, $force_multiple=array())''' -> converts an xml tree to an associative array
 
* '''static void XMLParser::hide_output()''' -> collects every output that will be normally sent to standard output
* '''static string XMLParser::show_output()''' -> return a string containing all the previosly collected output

Latest revision as of 15:38, 6 June 2016

Gfx contains some XML utilities.

  • static bool EXMLParser::is_assoc($array) -> checks if $array is associative or not
  • static array EXMLParser::to_array($contents, $force_multiple=array()) -> converts an xml tree to an associative array