ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilStudyProgrammeCourseListGUI.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
27 {
28  protected static string $tpl_file_name = "tpl.course_list_item.html";
29  protected static string $tpl_component = "Modules/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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$i
Definition: metadata.php:41