System_ProcWatch_Config::fromXmlFileSystem_ProcWatch_Config::fromXmlFile() -- Get config array from XML file Synopsisrequire_once 'System/ProcWatch/Config.php'; |
mixed System_ProcWatch_Config::fromXmlFile (string $file)
Description
Parses an XML file into an config array to configure System_ProcWatch with.
Parameter
- string
$file
path to XML file
Return value
Returns config array on success or PEAR_Error on failure.
Throws
Throws PEAR_Error if XML file does not exist, or
problems parsing the XML file have occured.
NoteThis function should be called
statically. |