ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
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 (string $label, ?int $parameter=null, ?int $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, bool $current=false) | |||||||
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 | |
array | $structure |
$parent | |
string | $command |
Additional Inherited Members | |
![]() | |
const | LP_NOT_STARTED = 0 |
const | LP_IN_PROGRESS = 1 |
const | LP_COMPLETED = 2 |
const | LP_FAILED = 3 |
Class LSTOCBuilder.
Definition at line 26 of file LSTOCBuilder.php.
LSTOCBuilder::__construct | ( | $parent, | |
string | $command, | ||
string | $label = '' , |
||
?int | $parameter = null , |
||
$state = null |
|||
) |
LSControlBuilder|LSTOCBuilder $parent.
Definition at line 43 of file LSTOCBuilder.php.
References $command, and $parent.
LSTOCBuilder::end | ( | ) |
Finish building the TOC.
Implements ILIAS\KioskMode\TOCBuilder.
Definition at line 64 of file LSTOCBuilder.php.
References $parent, and $structure.
LSTOCBuilder::item | ( | string | $label, |
int | $parameter, | ||
$state = null , |
|||
bool | $current = false |
||
) |
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 |
bool | $current | is this the currently active item? |
Implements ILIAS\KioskMode\TOCBuilder.
Definition at line 85 of file LSTOCBuilder.php.
References $command.
Referenced by ilLMTOCExplorerGUI\renderLSTocNode().
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 75 of file LSTOCBuilder.php.
Referenced by ilLMTOCExplorerGUI\renderLSTocNode().
LSTOCBuilder::toJSON | ( | ) |
Definition at line 56 of file LSTOCBuilder.php.
Referenced by ilKioskPageRenderer\buildToCSlate().
|
protected |
Definition at line 38 of file LSTOCBuilder.php.
Referenced by __construct(), and item().
|
protected |
Definition at line 36 of file LSTOCBuilder.php.
Referenced by __construct(), and end().
|
protected |
Definition at line 31 of file LSTOCBuilder.php.
Referenced by end().