Timline (temporary implementation)
More...
Timline (temporary implementation)
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 14 of file class.ilTimelineGUI.php.
◆ __construct()
ilTimelineGUI::__construct |
( |
| ) |
|
|
protected |
Construct.
- Parameters
-
Definition at line 34 of file class.ilTimelineGUI.php.
References $DIC.
38 $this->lng = $DIC->language();
39 $this->tpl = $DIC[
"tpl"];
◆ addItem()
◆ getInstance()
static ilTimelineGUI::getInstance |
( |
| ) |
|
|
static |
◆ render()
ilTimelineGUI::render |
( |
|
$a_items_only = false | ) |
|
Render.
- Parameters
-
Definition at line 70 of file class.ilTimelineGUI.php.
References $t, and IL_CAL_FKT_DATE.
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");
78 $t->touchBlock(
"list_start");
79 $t->touchBlock(
"list_end");
81 $keys = array_keys($this->items);
82 foreach ($this->items as $k => $i)
85 if (isset($this->items[$keys[$k+1]]))
87 $next = $this->items[$keys[$k+1]];
90 $dt = $i->getDateTime();
93 $t->setCurrentBlock(
"badge");
95 $t->setVariable(
"MONTH", $this->lng->txt(
"month_" . $dt->get(
IL_CAL_FKT_DATE,
"m") .
"_short"));
96 $t->parseCurrentBlock();
99 $t->setCurrentBlock(
"item");
100 $t->setVariable(
"CONTENT", $i->render());
101 $t->parseCurrentBlock();
special template class to simplify handling of ITX/PEAR
◆ $items
ilTimelineGUI::$items = array() |
|
protected |
◆ $lng
◆ $tpl
The documentation for this class was generated from the following file: