ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilStudyProgrammeCourseListGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
27 {
28  protected static string $tpl_file_name = "tpl.course_list_item.html";
29  protected static string $tpl_component = "components/ILIAS/StudyProgramme";
30 
31  protected int $indent = 0;
32 
33  public function setIndent(int $a_indent): void
34  {
35  assert($a_indent > 0);
36  $this->indent = $a_indent;
37  }
38 
39  public function getIndent(): int
40  {
41  return $this->indent;
42  }
43 
44  // This should be doing something else originally, but i need some
45  // kind of hook in ilObjectListGUI::getListItemHTML and chose this,
46  // as it is called at last.
47  public function insertSubItems(): void
48  {
49  parent::insertSubItems();
50  for ($i = 0; $i < $this->getIndent(); $i++) {
51  $this->tpl->touchBlock("indent");
52  }
53  }
54 }
Class ilObjCourseListGUI.
Class ilStudyProgrammeCourseListGUI.