10 defined(
'JPATH_PLATFORM') or die;
29 public $syndicationURL =
"";
49 public $copyright =
"";
69 public $lastBuildDate =
"";
97 public $editorEmail =
"";
107 public $webmaster =
"";
117 public $category =
"";
147 public $skipHours =
"";
157 public $skipDays =
"";
165 public $items = array();
174 public function __construct($options = array())
176 parent::__construct($options);
179 $this->_type =
'feed';
194 public function render($cache =
false, $params = array())
200 $renderer = $this->loadRenderer(($type) ? $type :
'rss');
201 if (!is_a($renderer,
'JDocumentRenderer'))
203 throw new Exception(
JText::_(
'JGLOBAL_RESOURCE_NOT_FOUND'), 404);
205 $this->setMimeEncoding($renderer->getContentType());
209 $data =
"<?xml version=\"1.0\" encoding=\"" . $this->_charset .
"\"?>\n";
210 $data .=
"<!-- generator=\"" . $this->getGenerator() .
"\" -->\n";
213 foreach ($this->_styleSheets as $src => $attr)
215 $data .=
"<?xml-stylesheet href=\"$src\" type=\"" . $attr[
'mime'] .
"\"?>\n";
219 $data .= $renderer->render();
236 $item->source = $this->link;
237 $this->items[] = $item;