示例#1
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('atom') . ':' . 'content':
             $content = new App\Extension\Content();
             $content->transferFromDOM($child);
             $this->_content = $content;
             break;
         case $this->lookupNamespace('atom') . ':' . 'published':
             $published = new App\Extension\Published();
             $published->transferFromDOM($child);
             $this->_published = $published;
             break;
         case $this->lookupNamespace('atom') . ':' . 'source':
             $source = new App\Extension\Source();
             $source->transferFromDOM($child);
             $this->_source = $source;
             break;
         case $this->lookupNamespace('atom') . ':' . 'summary':
             $summary = new App\Extension\Summary();
             $summary->transferFromDOM($child);
             $this->_summary = $summary;
             break;
         case $this->lookupNamespace('app') . ':' . 'control':
             $control = new App\Extension\Control();
             $control->transferFromDOM($child);
             $this->_control = $control;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }