/** * Determine if an XML response is an XMLRPC fault * * @param string $xml * @return boolean */ public static function isFault($xml) { $fault = new self(); try { $isFault = $fault->loadXml($xml); } catch (Zend_XmlRpc_Exception $e) { $isFault = false; } return $isFault; }
/** * Determine if an XML response is an XMLRPC fault * * @param string $xml * @return boolean */ public static function isFault($xml) { $fault = new self(); // require_once 'Zend/XmlRpc/Exception.php'; try { $isFault = $fault->loadXml($xml); } catch (Zend_XmlRpc_Exception $e) { $isFault = false; } return $isFault; }
/** * Determine if an XML response is an XMLRPC fault * * @param string $xml * @return boolean */ public static function isFault($xml) { $fault = new self(); try { $isFault = $fault->loadXml($xml); } catch (Exception\ExceptionInterface $e) { $isFault = false; } return $isFault; }
public static function fromXml($document) { $resourceList = new self(); $resourceList->loadXml($document); return $resourceList; }
public static function fromXml($document) { $textNotification = new self(); $textNotification->loadXml($document); return $textNotification; }