5include_once(
"./Services/News/Timeline/interfaces/interface.ilTimelineItemInt.php");
 
   38        $this->lng = 
$DIC->language();
 
   39        $this->tpl = 
$DIC[
"tpl"];
 
   61        $this->items[] = $a_item;
 
   70    public function render($a_items_only = 
false)
 
   72        $this->tpl->addJavaScript(
"./Services/News/Timeline/js/Timeline.js");
 
   73        $this->tpl->addJavaScript(
"./Services/News/Timeline/libs/jquery-dynamic-max-height-master/src/jquery.dynamicmaxheight.js");
 
   75        $t = 
new ilTemplate(
"tpl.timeline.html", 
true, 
true, 
"Services/News/Timeline");
 
   77            $t->touchBlock(
"list_start");
 
   78            $t->touchBlock(
"list_end");
 
   80        $keys = array_keys($this->items);
 
   81        foreach ($this->items as $k => 
$i) {
 
   83            if (isset($this->items[
$keys[$k+1]])) {
 
   84                $next = $this->items[
$keys[$k+1]];
 
   87            $dt = 
$i->getDateTime();
 
   89                $t->setCurrentBlock(
"badge");
 
   91                $t->setVariable(
"MONTH", $this->lng->txt(
"month_" . $dt->get(
IL_CAL_FKT_DATE, 
"m") . 
"_short"));
 
   92                $t->parseCurrentBlock();
 
   95            $t->setCurrentBlock(
"item");
 
   96            $t->setVariable(
"CONTENT", 
$i->render());
 
   97            $t->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
special template class to simplify handling of ITX/PEAR
Timline (temporary implementation)
addItem(ilTimelineItemInt $a_item)
Add item.
render($a_items_only=false)
Render.
static getInstance()
Get instance.
Interface for timeline items.