Exemplo n.º 1
0
Arquivo: feeder.php Projeto: 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();
 }