Example #1
0
 public function getEMailFeed($location = null)
 {
     $xmlFeed = parent::fetchRequest(self::EMAIL_FEED_URI);
     $doc = new DOMDocument();
     $success = @$doc->loadXML($xmlFeed);
     if ($success) {
         $eMails = $doc->getElementsByTagName(self::EMAIL_TAG);
         if ($eMails->length == 1) {
             return $eMails->item(0)->nodeValue;
         }
     } else {
         require_once 'Zend/Gdata/App/Exception.php';
         throw new Zend_Gdata_App_Exception("DOMDocument cannot parse XML: {$php_errormsg}");
     }
     return null;
 }