ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
TOCBuilder.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /* Copyright (c) 2018 - Richard Klees <richard.klees@concepts-and-training.de> - Extended GPL, see LICENSE */
6 
7 namespace ILIAS\KioskMode;
8 
9 use ILIAS\UI;
10 
14 interface TOCBuilder
15 {
16  public const LP_NOT_STARTED = 0;
17  public const LP_IN_PROGRESS = 1;
18  public const LP_COMPLETED = 2;
19  public const LP_FAILED = 3;
20 
26  public function end();
27 
38  public function node(string $label, int $parameter = null, int $lp = null): TOCBuilder;
39 
51  public function item(string $label, int $parameter, $state = null, bool $current = false): TOCBuilder;
52 }
Build a nested table of contents for the view.
Definition: TOCBuilder.php:14
item(string $label, int $parameter, $state=null, bool $current=false)
Build an entry in the TOC.
node(string $label, int $parameter=null, int $lp=null)
Build a sub tree in the TOC.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
end()
Finish building the TOC.