ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
14require_once("Modules/Course/classes/class.ilObjCourseListGUI.php");
15
17 static protected $tpl_file_name = "tpl.course_list_item.html";
18 static protected $tpl_component = "Modules/StudyProgramme";
19
20 protected $indent = 0;
21
22 public function setIndent($a_indent) {
23 assert(is_int($a_indent));
24 assert($a_indent > 0);
25 $this->indent = $a_indent;
26 }
27
28 public function getIndent() {
29 return $this->indent;
30 }
31
32 // This should be doing something else originally, but i need some
33 // kind of hook in ilObjectListGUI::getListItemHTML and chose this,
34 // as it is called at last.
35 function insertSubItems() {
36 parent::insertSubItems();
37 for($i = 0; $i < $this->getIndent(); $i++) {
38 $this->tpl->touchBlock("indent");
39 }
40 }
41}
Class ilObjCourseListGUI.
Class ilStudyProgrammeCourseListGUI.