This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Timline (temporary implementation)
- Author
 - Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de 
 
Definition at line 24 of file class.ilTimelineGUI.php.
 
◆ __construct()
  
  
      
        
          | ilTimelineGUI::__construct  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ addItem()
◆ getInstance()
  
  
      
        
          | static ilTimelineGUI::getInstance  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ render()
      
        
          | ilTimelineGUI::render  | 
          ( | 
          bool  | 
          $a_items_only = false | ) | 
           | 
        
      
 
Definition at line 49 of file class.ilTimelineGUI.php.
References IL_CAL_FKT_DATE, and ILIAS\Repository\lng().
   54             $this->tpl->addJavaScript(
"../components/ILIAS/News/resources/Timeline.js");
    56             $this->tpl->addJavaScript(
"assets/js/Timeline.js");
    59         $t = 
new ilTemplate(
"tpl.timeline.html", 
true, 
true, 
"components/ILIAS/News/Timeline");
    61             $t->touchBlock(
"list_start");
    62             $t->touchBlock(
"list_end");
    64         $keys = array_keys($this->items);
    65         foreach ($this->items as $k => $i) {
    67             if (isset($keys[$k + 1], $this->items[$keys[$k + 1]])) {
    68                 $next = $this->items[$keys[$k + 1]];
    71             $dt = $i->getDateTime();
    73                 $t->setCurrentBlock(
"badge");
    75                 $t->setVariable(
"MONTH", $this->
lng->txt(
"month_" . $dt->get(
IL_CAL_FKT_DATE, 
"m") . 
"_short"));
    76                 $t->parseCurrentBlock();
    79             $t->setCurrentBlock(
"item");
    80             $t->setVariable(
"CONTENT", $i->render());
    81             $t->setVariable(
"FOOTER", $i->renderFooter());
    82             $t->parseCurrentBlock();
 
 
 
 
◆ $items
  
  
      
        
          | array ilTimelineGUI::$items = [] | 
         
       
   | 
  
protected   | 
  
 
 
◆ $lng
◆ $tpl
The documentation for this class was generated from the following file: