5include_once(
"Services/Feeds/classes/class.ilFeedItem.php");
 
   51        $this->tree = 
$DIC->repositoryTree();
 
   52        $this->lng = 
$DIC->language();
 
   60        $this->encoding = $a_enc;
 
   73        $this->ch_about = $a_ab;
 
   86        $this->ch_title = $a_title;
 
  100        $this->ch_link = $a_link;
 
  113        $this->ch_desc = $a_desc;
 
  118        return $this->ch_desc;
 
  127        $this->items[] = $a_item;
 
  137        $a_str = str_replace(
"&", 
"&", $a_str);
 
  138        $a_str = str_replace(
"<", 
"<", $a_str);
 
  139        $a_str = str_replace(
">", 
">", $a_str);
 
  148        include_once(
"./Services/UICore/classes/class.ilTemplate.php");
 
  149        $this->tpl = 
new ilTemplate(
"tpl.rss_2_0.xml", 
true, 
true, 
"Services/Feeds");
 
  151        $this->tpl->setVariable(
"XML", 
"xml");
 
  152        $this->tpl->setVariable(
"CONTENT_ENCODING", $this->
getEncoding());
 
  158        foreach ($this->items as $item) {
 
  159            $this->tpl->setCurrentBlock(
"rdf_seq");
 
  160            $this->tpl->setVariable(
"RESOURCE", $item->getAbout());
 
  161            $this->tpl->parseCurrentBlock();
 
  164            if ($item->getDate() != 
"") {
 
  165                $this->tpl->setCurrentBlock(
"date");
 
  166                $d = $item->getDate();
 
  167                $yyyy = substr(
$d, 0, 4);
 
  168                $mm = substr(
$d, 5, 2);
 
  169                $dd = substr(
$d, 8, 2);
 
  170                $h = substr(
$d, 11, 2);
 
  171                $m = substr(
$d, 14, 2);
 
  172                $s = substr(
$d, 17, 2);
 
  173                $this->tpl->setVariable(
 
  175                    date(
"r", mktime(
$h, 
$m, 
$s, $mm, $dd, $yyyy))
 
  177                $this->tpl->parseCurrentBlock();
 
  181            if ($item->getEnclosureUrl() != 
"") {
 
  182                $this->tpl->setCurrentBlock(
"enclosure");
 
  183                $this->tpl->setVariable(
"ENC_URL", $item->getEnclosureUrl());
 
  184                $this->tpl->setVariable(
"ENC_LENGTH", $item->getEnclosureLength());
 
  185                $this->tpl->setVariable(
"ENC_TYPE", $item->getEnclosureType());
 
  186                $this->tpl->parseCurrentBlock();
 
  189            $this->tpl->setCurrentBlock(
"item");
 
  190            $this->tpl->setVariable(
"ITEM_ABOUT", $item->getAbout());
 
  191            $this->tpl->setVariable(
"ITEM_TITLE", $item->getTitle());
 
  192            $this->tpl->setVariable(
"ITEM_DESCRIPTION", $item->getDescription());
 
  193            $this->tpl->setVariable(
"ITEM_LINK", $item->getLink());
 
  194            $this->tpl->parseCurrentBlock();
 
  197        $this->tpl->parseCurrentBlock();
 
  198        return $this->tpl->get();
 
  203        header(
"Content-Type: text/xml; charset=UTF-8;");
 
  219            $r_path = array_reverse(
$path);
 
  225                    if (in_array(
$row[
"type"], array(
"root", 
"cat", 
"grp", 
"crs"))) {
 
  226                        $first = 
$row[
"child"];
 
  229                $omit[
$row[
"child"]] = $do_omit;
 
  234                if ($first == 
$row[
"child"]) {
 
  238                if ($add_it && !$omit[
$row[
"child"]] &&
 
  239                    ((
$row[
"child"] != $a_ref_id))) {
 
  240                    if (
$row[
"title"] == 
"ILIAS" && 
$row[
"type"] == 
"root") {
 
  241                        $row[
"title"] = 
$lng->txt(
"repository");
 
  249            return "[" . implode(
" > ", 
$items) . 
"]";
 
An exception for terminatinating execution or to throw for unit testing.
addItem($a_item)
Add Item Item is an object of type ilFeedItem.
setChannelLink($a_link)
Channel Link URL to which an HTML rendering of the channel title will link.
setEncoding($a_enc)
Set feed encoding.
setChannelAbout($a_ab)
Unique URI that defines the channel.
getContextPath($a_ref_id)
setChannelTitle($a_title)
Channel Title.
__construct()
ilFeedWriter constructor.
setChannelDescription($a_desc)
Channel Description.
special template class to simplify handling of ITX/PEAR
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d