示例#1
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'feedLink':
             $feedLink = new FeedLink();
             $feedLink->transferFromDOM($child);
             $this->_feedLink = $feedLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
示例#2
0
文件: feeder.php 项目: ajb/rfpez
 function NormalizeChannel()
 {
     $this->channel->Updated() or $this->channel->Updated(filemtime($this->chanFile));
     if (!$this->channel->Permalink()) {
         $links = $this->channel->Links()->Get('self');
         $links and $this->channel->Permalink($links[0]->URL());
     }
     foreach ($this->alternate as $format) {
         $link = new FeedLink('alternate');
         $link->Type(FeedOut::MimeOf($format));
         $link->URL($this->UrlOf('format=', $this->EncodeIRI(strtolower($format))));
         $link->Title($format);
         $this->channel->Links()->Add($link);
     }
     parent::NormalizeChannel();
 }