ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
TOCBuilder.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\KioskMode;
22 
23 use ILIAS\UI;
24 
28 interface 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:28
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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.