示例#1
0
文件: Feed.php 项目: hackingman/TubeX
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('atom') . ':' . 'entry':
             $newEntry = new $this->_entryClassName($child);
             $newEntry->setHttpClient($this->getHttpClient());
             $newEntry->setMajorProtocolVersion($this->getMajorProtocolVersion());
             $newEntry->setMinorProtocolVersion($this->getMinorProtocolVersion());
             $this->_entry[] = $newEntry;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }