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

A kiosk mode view on a certain object. More...

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

Public Member Functions

 buildInitialState (State $empty_state)
 Build an initial state based on the Provided empty state. More...
 
 buildControls (State $state, ControlBuilder $builder)
 Construct the controls for the view based on the current state. More...
 
 updateGet (State $state, string $command, int $parameter=null)
 Update the state based on the provided command. More...
 
 updatePost (State $state, string $command, array $post)
 Update the state and the object based on the provided command and post-data. More...
 
 render (State $state, UI\Factory $factory, URLBuilder $url_builder, array $post=null)
 Render a state using the ui-factory and URLs from the builder. More...
 

Detailed Description

A kiosk mode view on a certain object.

See README/Architecture for further details and README/Implementing a Provider for further directions about implementation.

Definition at line 13 of file View.php.

Member Function Documentation

◆ buildControls()

ILIAS\KioskMode\View::buildControls ( State  $state,
ControlBuilder  $builder 
)

Construct the controls for the view based on the current state.

The interaction with the controls build via the ControlBuilder will always be delegated to updateGet.

Implemented in ilContentPageKioskModeView, and ilLegacyKioskModeView.

◆ buildInitialState()

ILIAS\KioskMode\View::buildInitialState ( State  $empty_state)

Build an initial state based on the Provided empty state.

Implemented in ilContentPageKioskModeView, and ilLegacyKioskModeView.

◆ render()

ILIAS\KioskMode\View::render ( State  $state,
UI\Factory  $factory,
URLBuilder  $url_builder,
array  $post = null 
)

Render a state using the ui-factory and URLs from the builder.

Links inside the content that should lead to kiosk-mode-view again (forms) must be created via the URLBuilder.

If data was POSTed to the kiosk-mode-view, it will be passed via $post.

◆ updateGet()

ILIAS\KioskMode\View::updateGet ( State  $state,
string  $command,
int  $parameter = null 
)

Update the state based on the provided command.

If the update was caused by a control with a $parameter (see ControlBuilder) that value is passed to $parameter here.

Commands and parameters are defined by the view in buildControl.

Implemented in ilContentPageKioskModeView, and ilLegacyKioskModeView.

◆ updatePost()

ILIAS\KioskMode\View::updatePost ( State  $state,
string  $command,
array  $post 
)

Update the state and the object based on the provided command and post-data.

Commands are defined via the url-builder provided to render.

The POSTed data will be passed via $post.

Implemented in ilContentPageKioskModeView, and ilLegacyKioskModeView.


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