* @version SVN: $Id: sfRssFeed.class.php 2092 2008-11-18 19:28:41Z michal $ */ abstract class sfRssFeed extends sfFeed { public function getFeed() { $this->getContext()->getResponse()->setContentType('application/rss+xml'); $xml = array(); $xml[] = 'getEncoding().'" ?>'; $xml[] = ''; $xml[] = ' '; $xml[] = ' '.$this->getTitle().''; $xml[] = ' '.sfContext::getInstance()->getController()->genUrl($this->getLink(), true).''; $xml[] = ' '.$this->getDescription().''; if ($this->getLanguage()) { $xml[] = ' '.$this->getLanguage().''; } $xml[] = implode("\n", $this->getFeedElements()); $xml[] = ' '; $xml[] = ''; return implode("\n", $xml); } abstract protected function getFeedElements(); abstract protected function getVersion(); } ?>