Пример #1
0
 /**
  * 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 WebContent();
         $webContent->transferFromDOM($child);
         $this->_webContent = $webContent;
         break;
     default:
         parent::takeChildFromDOM($child);
         break;
     }
 }
Пример #2
0
 /**
  * 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 Token();
         $token->transferFromDOM($child);
         $this->_token = $token;
         break;
     default:
         parent::takeChildFromDOM($child);
         break;
     }
 }
Пример #3
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
     case $this->lookupNamespace('atom') . ':' . 'author':
         $author = new Extension\Author();
         $author->transferFromDOM($child);
         $this->_author[] = $author;
         break;
     case $this->lookupNamespace('atom') . ':' . 'category':
         $category = new Extension\Category();
         $category->transferFromDOM($child);
         $this->_category[] = $category;
         break;
     case $this->lookupNamespace('atom') . ':' . 'contributor':
         $contributor = new Extension\Contributor();
         $contributor->transferFromDOM($child);
         $this->_contributor[] = $contributor;
         break;
     case $this->lookupNamespace('atom') . ':' . 'id':
         $id = new Extension\Id();
         $id->transferFromDOM($child);
         $this->_id = $id;
         break;
     case $this->lookupNamespace('atom') . ':' . 'link':
         $link = new Extension\Link();
         $link->transferFromDOM($child);
         $this->_link[] = $link;
         break;
     case $this->lookupNamespace('atom') . ':' . 'rights':
         $rights = new Extension\Rights();
         $rights->transferFromDOM($child);
         $this->_rights = $rights;
         break;
     case $this->lookupNamespace('atom') . ':' . 'title':
         $title = new Extension\Title();
         $title->transferFromDOM($child);
         $this->_title = $title;
         break;
     case $this->lookupNamespace('atom') . ':' . 'updated':
         $updated = new Extension\Updated();
         $updated->transferFromDOM($child);
         $this->_updated = $updated;
         break;
     default:
         parent::takeChildFromDOM($child);
         break;
     }
 }
Пример #4
0
 /**
  * Constructor for Zend_Gdata_Books_Extension_BooksLink which
  * Extends the base Link class with Books extensions
  *
  * @param string|null $href Linked resource URI
  * @param string|null $rel Forward relationship
  * @param string|null $type Resource MIME type
  * @param string|null $hrefLang Resource language
  * @param string|null $title Human-readable resource title
  * @param string|null $length Resource length in octets
  */
 public function __construct($href = null, $rel = null, $type = null, $hrefLang = null, $title = null, $length = null)
 {
     $this->registerAllNamespaces(\Zend\GData\Books::$namespaces);
     parent::__construct($href, $rel, $type, $hrefLang, $title, $length);
 }