Beispiel #1
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('atom') . ':' . 'content':
             $content = new Extension\Content();
             $content->transferFromDOM($child);
             $this->_content = $content;
             break;
         case $this->lookupNamespace('atom') . ':' . 'published':
             $published = new Extension\Published();
             $published->transferFromDOM($child);
             $this->_published = $published;
             break;
         case $this->lookupNamespace('atom') . ':' . 'source':
             $source = new Extension\Source();
             $source->transferFromDOM($child);
             $this->_source = $source;
             break;
         case $this->lookupNamespace('atom') . ':' . 'summary':
             $summary = new Extension\Summary();
             $summary->transferFromDOM($child);
             $this->_summary = $summary;
             break;
         case $this->lookupNamespace('app') . ':' . 'control':
             $control = new Extension\Control();
             $control->transferFromDOM($child);
             $this->_control = $control;
             break;
         case $this->lookupNamespace('app') . ':' . 'edited':
             $edited = new Extension\Edited();
             $edited->transferFromDOM($child);
             $this->_edited = $edited;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
 /**
  * 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('atom') . ':' . 'generator':
             $generator = new Extension\Generator();
             $generator->transferFromDOM($child);
             $this->_generator = $generator;
             break;
         case $this->lookupNamespace('atom') . ':' . 'icon':
             $icon = new Extension\Icon();
             $icon->transferFromDOM($child);
             $this->_icon = $icon;
             break;
         case $this->lookupNamespace('atom') . ':' . 'logo':
             $logo = new Extension\Logo();
             $logo->transferFromDOM($child);
             $this->_logo = $logo;
             break;
         case $this->lookupNamespace('atom') . ':' . 'subtitle':
             $subtitle = new Extension\Subtitle();
             $subtitle->transferFromDOM($child);
             $this->_subtitle = $subtitle;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }