ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\KioskMode\TOCBuilder Interface Reference

Build a nested table of contents for the view. More...

+ Inheritance diagram for ILIAS\KioskMode\TOCBuilder:
+ Collaboration diagram for ILIAS\KioskMode\TOCBuilder:

Public Member Functions

 end ()
 Finish building the TOC. More...
 
 node ($label, int $parameter=null, $lp=null)
 Build a sub tree in the TOC. More...
 
 item (string $label, int $parameter, $state=null)
 Build an entry in the TOC. More...
 

Data Fields

const LP_NOT_STARTED = 0
 
const LP_IN_PROGRESS = 1
 
const LP_COMPLETED = 2
 
const LP_FAILED = 3
 

Detailed Description

Build a nested table of contents for the view.

Definition at line 11 of file TOCBuilder.php.

Member Function Documentation

◆ end()

ILIAS\KioskMode\TOCBuilder::end ( )

Finish building the TOC.

Returns
ControlBuilder|TOCBuilder depending on the nesting level.

Implemented in LSTOCBuilder.

◆ item()

ILIAS\KioskMode\TOCBuilder::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.

Parameters
mixed$stateone of the LP_ constants from TOCBuilder

Implemented in LSTOCBuilder.

◆ node()

ILIAS\KioskMode\TOCBuilder::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.

Parameters
mixed$stateone of the LP_ constants from TOCBuilder

Implemented in LSTOCBuilder.

Field Documentation

◆ LP_COMPLETED

const ILIAS\KioskMode\TOCBuilder::LP_COMPLETED = 2

Definition at line 15 of file TOCBuilder.php.

◆ LP_FAILED

const ILIAS\KioskMode\TOCBuilder::LP_FAILED = 3

Definition at line 16 of file TOCBuilder.php.

◆ LP_IN_PROGRESS

const ILIAS\KioskMode\TOCBuilder::LP_IN_PROGRESS = 1

Definition at line 14 of file TOCBuilder.php.

◆ LP_NOT_STARTED

const ILIAS\KioskMode\TOCBuilder::LP_NOT_STARTED = 0

Definition at line 13 of file TOCBuilder.php.


The documentation for this interface was generated from the following file: