コード例 #1
0
ファイル: Link.php プロジェクト: dragonlet/clearhealth
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('yt') . ':' . 'token':
             $token = new Zend_Gdata_YouTube_Extension_Token();
             $token->transferFromDOM($child);
             $this->_token = $token;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
コード例 #2
0
ファイル: Link.php プロジェクト: dragonlet/clearhealth
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gCal') . ':' . 'webContent':
             $webContent = new Zend_Gdata_Calendar_Extension_WebContent();
             $webContent->transferFromDOM($child);
             $this->_webContent = $webContent;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }