System_ProcWatch_Config::fromXml

System_ProcWatch_Config::fromXml() – XML 文字列から設定配列を取得する

Synopsis

require_once 'System/ProcWatch/Config.php';

mixed System_ProcWatch_Config::fromXml ( string $xml )

Description

XML 文字列をパースし、System_ProcWatch の設定用の配列に変換します。

Parameter

string $xml

XML 文字列。

Return value

成功した場合に設定配列、失敗した場合に PEAR_Error を返します。

Throws

XML ファイルが存在しない場合や XML 文字列のパース中に問題が発生した場合は PEAR_Error をスローします。

Note

This function should be called statically.