ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TOCBuilder.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\KioskMode;
22
23use ILIAS\UI;
24
28interface TOCBuilder
29{
30 public const LP_NOT_STARTED = 0;
31 public const LP_IN_PROGRESS = 1;
32 public const LP_COMPLETED = 2;
33 public const LP_FAILED = 3;
34
40 public function end();
41
52 public function node(string $label, ?int $parameter = null, ?int $lp = null): TOCBuilder;
53
65 public function item(string $label, int $parameter, $state = null, bool $current = false): TOCBuilder;
66}
Build a nested table of contents for the view.
Definition: TOCBuilder.php:29
node(string $label, ?int $parameter=null, ?int $lp=null)
Build a sub tree in the TOC.
end()
Finish building the TOC.
item(string $label, int $parameter, $state=null, bool $current=false)
Build an entry in the TOC.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...