ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class LSTOCBuilder. More...
Public Member Functions | ||||
__construct ($parent, string $command, string $label='', int $parameter=null, $state=null) | ||||
LSControlBuilder|LSTOCBuilder $parent. More... | ||||
toJSON () | ||||
end () | ||||
Finish building the TOC.
| ||||
node ($label, int $parameter=null, $lp=null) | ||||
Build a sub tree in the TOC.If a parameter is provided, the node in the TOC can be accessed itself.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
| ||||
item (string $label, int $parameter, $state=null) | ||||
Build an entry in the TOC.The parameter will be appended to the command when updating the state.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
| ||||
Protected Attributes | |
$structure | |
$parent | |
$command | |
Additional Inherited Members | |
Data Fields inherited from ILIAS\KioskMode\TOCBuilder | |
const | LP_NOT_STARTED = 0 |
const | LP_IN_PROGRESS = 1 |
const | LP_COMPLETED = 2 |
const | LP_FAILED = 3 |
Class LSTOCBuilder.
Definition at line 11 of file LSTOCBuilder.php.
LSTOCBuilder::__construct | ( | $parent, | |
string | $command, | ||
string | $label = '' , |
||
int | $parameter = null , |
||
$state = null |
|||
) |
LSControlBuilder|LSTOCBuilder $parent.
Definition at line 31 of file LSTOCBuilder.php.
References $command, $parent, and $state.
LSTOCBuilder::end | ( | ) |
Finish building the TOC.
Implements ILIAS\KioskMode\TOCBuilder.
Definition at line 52 of file LSTOCBuilder.php.
References $parent, and $structure.
LSTOCBuilder::item | ( | string | $label, |
int | $parameter, | ||
$state = null |
|||
) |
Build an entry in the TOC.The parameter will be appended to the command when updating the state.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
mixed | $state | one of the LP_ constants from TOCBuilder |
Implements ILIAS\KioskMode\TOCBuilder.
Definition at line 71 of file LSTOCBuilder.php.
References $command, and $state.
LSTOCBuilder::node | ( | $label, | |
int | $parameter = null , |
||
$lp = null |
|||
) |
Build a sub tree in the TOC.If a parameter is provided, the node in the TOC can be accessed itself.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
mixed | $state | one of the LP_ constants from TOCBuilder |
Implements ILIAS\KioskMode\TOCBuilder.
Definition at line 61 of file LSTOCBuilder.php.
LSTOCBuilder::toJSON | ( | ) |
Definition at line 44 of file LSTOCBuilder.php.
|
protected |
Definition at line 26 of file LSTOCBuilder.php.
Referenced by __construct(), and item().
|
protected |
Definition at line 21 of file LSTOCBuilder.php.
Referenced by __construct(), and end().
|
protected |
Definition at line 16 of file LSTOCBuilder.php.
Referenced by end().