Exemplo n.º 1
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'where':
             $where = new \ZendGData\Extension\Where();
             $where->transferFromDOM($child);
             $this->_where[] = $where;
             break;
         case $this->lookupNamespace('gd') . ':' . 'when':
             $when = new \ZendGData\Extension\When();
             $when->transferFromDOM($child);
             $this->_when[] = $when;
             break;
         case $this->lookupNamespace('gd') . ':' . 'who':
             $who = new \ZendGData\Extension\Who();
             $who->transferFromDOM($child);
             $this->_who[] = $who;
             break;
         case $this->lookupNamespace('gd') . ':' . 'recurrence':
             $recurrence = new \ZendGData\Extension\Recurrence();
             $recurrence->transferFromDOM($child);
             $this->_recurrence = $recurrence;
             break;
         case $this->lookupNamespace('gd') . ':' . 'eventStatus':
             $eventStatus = new \ZendGData\Extension\EventStatus();
             $eventStatus->transferFromDOM($child);
             $this->_eventStatus = $eventStatus;
             break;
         case $this->lookupNamespace('gd') . ':' . 'comments':
             $comments = new \ZendGData\Extension\Comments();
             $comments->transferFromDOM($child);
             $this->_comments = $comments;
             break;
         case $this->lookupNamespace('gd') . ':' . 'transparency':
             $transparency = new \ZendGData\Extension\Transparency();
             $transparency->transferFromDOM($child);
             $this->_transparency = $transparency;
             break;
         case $this->lookupNamespace('gd') . ':' . 'visibility':
             $visiblity = new \ZendGData\Extension\Visibility();
             $visiblity->transferFromDOM($child);
             $this->_visibility = $visiblity;
             break;
         case $this->lookupNamespace('gd') . ':' . 'recurrenceException':
             $recurrenceException = new \ZendGData\Extension\RecurrenceException();
             $recurrenceException->transferFromDOM($child);
             $this->_recurrenceException[] = $recurrenceException;
             break;
         case $this->lookupNamespace('gd') . ':' . 'originalEvent':
             $originalEvent = new \ZendGData\Extension\OriginalEvent();
             $originalEvent->transferFromDOM($child);
             $this->_originalEvent = $originalEvent;
             break;
         case $this->lookupNamespace('gd') . ':' . 'extendedProperty':
             $extProp = new \ZendGData\Extension\ExtendedProperty();
             $extProp->transferFromDOM($child);
             $this->_extendedProperty[] = $extProp;
             break;
         case $this->lookupNamespace('gd') . ':' . 'entryLink':
             $entryLink = new \ZendGData\Extension\EntryLink();
             $entryLink->transferFromDOM($child);
             $this->_entryLink = $entryLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Exemplo n.º 2
0
 /**
  * Creates individual objects of the appropriate type and stores
  * them in this object 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('dc') . ':' . 'creator':
             $creators = new \ZendGData\DublinCore\Extension\Creator();
             $creators->transferFromDOM($child);
             $this->_creators[] = $creators;
             break;
         case $this->lookupNamespace('dc') . ':' . 'date':
             $dates = new \ZendGData\DublinCore\Extension\Date();
             $dates->transferFromDOM($child);
             $this->_dates[] = $dates;
             break;
         case $this->lookupNamespace('dc') . ':' . 'description':
             $descriptions = new \ZendGData\DublinCore\Extension\Description();
             $descriptions->transferFromDOM($child);
             $this->_descriptions[] = $descriptions;
             break;
         case $this->lookupNamespace('dc') . ':' . 'format':
             $formats = new \ZendGData\DublinCore\Extension\Format();
             $formats->transferFromDOM($child);
             $this->_formats[] = $formats;
             break;
         case $this->lookupNamespace('dc') . ':' . 'identifier':
             $identifiers = new \ZendGData\DublinCore\Extension\Identifier();
             $identifiers->transferFromDOM($child);
             $this->_identifiers[] = $identifiers;
             break;
         case $this->lookupNamespace('dc') . ':' . 'language':
             $languages = new \ZendGData\DublinCore\Extension\Language();
             $languages->transferFromDOM($child);
             $this->_languages[] = $languages;
             break;
         case $this->lookupNamespace('dc') . ':' . 'publisher':
             $publishers = new \ZendGData\DublinCore\Extension\Publisher();
             $publishers->transferFromDOM($child);
             $this->_publishers[] = $publishers;
             break;
         case $this->lookupNamespace('dc') . ':' . 'subject':
             $subjects = new \ZendGData\DublinCore\Extension\Subject();
             $subjects->transferFromDOM($child);
             $this->_subjects[] = $subjects;
             break;
         case $this->lookupNamespace('dc') . ':' . 'title':
             $titles = new \ZendGData\DublinCore\Extension\Title();
             $titles->transferFromDOM($child);
             $this->_titles[] = $titles;
             break;
         case $this->lookupNamespace('gd') . ':' . 'comments':
             $comments = new \ZendGData\Extension\Comments();
             $comments->transferFromDOM($child);
             $this->_comments = $comments;
             break;
         case $this->lookupNamespace('gbs') . ':' . 'embeddability':
             $embeddability = new Extension\Embeddability();
             $embeddability->transferFromDOM($child);
             $this->_embeddability = $embeddability;
             break;
         case $this->lookupNamespace('gd') . ':' . 'rating':
             $rating = new \ZendGData\Extension\Rating();
             $rating->transferFromDOM($child);
             $this->_rating = $rating;
             break;
         case $this->lookupNamespace('gbs') . ':' . 'review':
             $review = new Extension\Review();
             $review->transferFromDOM($child);
             $this->_review = $review;
             break;
         case $this->lookupNamespace('gbs') . ':' . 'viewability':
             $viewability = new Extension\Viewability();
             $viewability->transferFromDOM($child);
             $this->_viewability = $viewability;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Exemplo n.º 3
0
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them in the $_entry array 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('gd') . ':' . 'comments':
             $comments = new \ZendGData\Extension\Comments();
             $comments->transferFromDOM($child);
             $this->_comments = $comments;
             break;
         case $this->lookupNamespace('gd') . ':' . 'rating':
             $rating = new \ZendGData\Extension\Rating();
             $rating->transferFromDOM($child);
             $this->_rating = $rating;
             break;
         case $this->lookupNamespace('yt') . ':' . 'statistics':
             $statistics = new Extension\Statistics();
             $statistics->transferFromDOM($child);
             $this->_statistics = $statistics;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }