ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
A kiosk mode view on a certain object. More...
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... | |
A kiosk mode view on a certain object.
See README/Architecture for further details and README/Implementing a Provider for further directions about implementation.
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.
ILIAS\KioskMode\View::buildInitialState | ( | State | $empty_state | ) |
Build an initial state based on the Provided empty state.
Implemented in ilContentPageKioskModeView, and ilLegacyKioskModeView.
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.
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.
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.