Exemplo n.º 1
0
Arquivo: feeder.php Projeto: ajb/rfpez
 static function ServeFeed()
 {
     $feeder = new TextFeeder(self::CurDir(), self::BaseURL());
     if ($count =& $_GET['count']) {
         $feeder->entriesPerFeed = $count;
     }
     $format = @$_REQUEST['format'];
     $format or $format = 'atom';
     $out = FeedOut::Factory($format);
     $out->Output($feeder);
 }
Exemplo n.º 2
0
 protected function CallOutput($format, $method)
 {
     $obj = FeedOut::Factory($format);
     $this->Normalize();
     return $obj->{$method}($this);
 }