ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilStudyProgrammeCourseListGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
14 require_once("Modules/Course/classes/class.ilObjCourseListGUI.php");
15 
17 {
18  protected static $tpl_file_name = "tpl.course_list_item.html";
19  protected static $tpl_component = "Modules/StudyProgramme";
20 
21  protected $indent = 0;
22 
23  public function setIndent($a_indent)
24  {
25  assert(is_int($a_indent));
26  assert($a_indent > 0);
27  $this->indent = $a_indent;
28  }
29 
30  public function getIndent()
31  {
32  return $this->indent;
33  }
34 
35  // This should be doing something else originally, but i need some
36  // kind of hook in ilObjectListGUI::getListItemHTML and chose this,
37  // as it is called at last.
38  public function insertSubItems()
39  {
40  parent::insertSubItems();
41  for ($i = 0; $i < $this->getIndent(); $i++) {
42  $this->tpl->touchBlock("indent");
43  }
44  }
45 }
Class ilObjCourseListGUI.
$i
Definition: disco.tpl.php:19
Class ilStudyProgrammeCourseListGUI.