Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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;
 }