5include_once(
"Services/Feeds/classes/class.ilFeedItem.php");
 
   47                $this->encoding = $a_enc;
 
   60                $this->ch_about = $a_ab;
 
   73                $this->ch_title = $a_title;
 
   87                $this->ch_link = $a_link;
 
  100                $this->ch_desc = $a_desc;
 
  105                return $this->ch_desc;
 
  114                $this->items[] = $a_item;
 
  124                $a_str = str_replace(
"&", 
"&", $a_str);
 
  125                $a_str = str_replace(
"<", 
"<", $a_str);
 
  126                $a_str = str_replace(
">", 
">", $a_str);
 
  135                include_once(
"./Services/UICore/classes/class.ilTemplate.php");
 
  136                $this->tpl = 
new ilTemplate(
"tpl.rss_2_0.xml", 
true, 
true, 
"Services/Feeds");
 
  138                $this->tpl->setVariable(
"XML", 
"xml");
 
  139                $this->tpl->setVariable(
"CONTENT_ENCODING", $this->
getEncoding());
 
  145                foreach($this->items as $item)
 
  147                        $this->tpl->setCurrentBlock(
"rdf_seq");
 
  148                        $this->tpl->setVariable(
"RESOURCE", $item->getAbout());
 
  149                        $this->tpl->parseCurrentBlock();
 
  152                        if ($item->getDate() != 
"")
 
  154                                $this->tpl->setCurrentBlock(
"date");
 
  155                                $d = $item->getDate();
 
  156                                $yyyy = substr(
$d, 0, 4);
 
  157                                $mm = substr(
$d, 5, 2);
 
  158                                $dd = substr(
$d, 8, 2);
 
  159                                $h = substr(
$d, 11, 2);
 
  160                                $m = substr(
$d, 14, 2);
 
  161                                $s = substr(
$d, 17, 2);
 
  162                                $this->tpl->setVariable(
"ITEM_DATE",
 
  163                                        date(
"r", mktime(
$h, $m, $s, $mm, $dd, $yyyy)));
 
  164                                $this->tpl->parseCurrentBlock();
 
  168                        if ($item->getEnclosureUrl() != 
"")
 
  170                                $this->tpl->setCurrentBlock(
"enclosure");
 
  171                                $this->tpl->setVariable(
"ENC_URL", $item->getEnclosureUrl());
 
  172                                $this->tpl->setVariable(
"ENC_LENGTH", $item->getEnclosureLength());
 
  173                                $this->tpl->setVariable(
"ENC_TYPE", $item->getEnclosureType());
 
  174                                $this->tpl->parseCurrentBlock();
 
  177                        $this->tpl->setCurrentBlock(
"item");
 
  178                        $this->tpl->setVariable(
"ITEM_ABOUT", $item->getAbout());
 
  179                        $this->tpl->setVariable(
"ITEM_TITLE", $item->getTitle());
 
  180                        $this->tpl->setVariable(
"ITEM_DESCRIPTION", $item->getDescription());
 
  181                        $this->tpl->setVariable(
"ITEM_LINK", $item->getLink());
 
  182                        $this->tpl->parseCurrentBlock();
 
  186                $this->tpl->parseCurrentBlock();
 
  187                return $this->tpl->get();
 
  192                header(
"Content-Type: text/xml; charset=UTF-8;");
 
  204                        $path = $tree->getPathFull($a_ref_id);
 
  208                        $r_path = array_reverse(
$path);
 
  212                        foreach ($r_path as $key => 
$row)
 
  216                                        if (in_array(
$row[
"type"], array(
"root", 
"cat", 
"grp", 
"crs")) )
 
  218                                                $first = 
$row[
"child"];
 
  221                                $omit[
$row[
"child"]] = $do_omit;
 
  227                                if ($first == 
$row[
"child"])
 
  232                                if ($add_it && !$omit[
$row[
"child"]] &&
 
  233                                        ((
$row[
"child"] != $a_ref_id)))
 
  235                                        if (
$row[
"title"] == 
"ILIAS" && 
$row[
"type"] == 
"root")
 
  237                                                $row[
"title"] = 
$lng->txt(
"repository");
 
  246                        return "[".implode(
" > ", 
$items).
"]";
 
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
for($col=0; $col< 50; $col++) $d
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