System_ProcWatch_Config::fromXml

System_ProcWatch_Config::fromXml() – Contruit le tableau de configuration à partir d'une chaîne XML

Synopsis

require_once 'System/ProcWatch/Config.php';

mixed System_ProcWatch_Config::fromXml ( string $xml )

Description

Parse le XML et en extrait les informations pour contruire le tableau pour configurer System_ProcWatch.

Parameter

string $xml

chaîne au format XML

Return value

Retourne un array contenant la configuration sauf en cas d'erreur ou un PEAR_Error est renvoyé.

Throws

Throws PEAR_Error if XML file does not exist or problems parsing the XML string have occured.

Note

This function should be called statically.