ILIAS  release_7 Revision v7.30-3-g800a261c036
View.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 2018 - Richard Klees <richard.klees@concepts-and-training.de> - Extended GPL, see LICENSE */
3
4namespace ILIAS\KioskMode;
5
6use ILIAS\UI;
7
13interface View
14{
18 public function buildInitialState(State $empty_state) : State;
19
26 public function buildControls(State $state, ControlBuilder $builder);
27
36 public function updateGet(State $state, string $command, int $parameter = null) : State;
37
45 public function updatePost(State $state, string $command, array $post) : State;
46
55 public function render(
56 State $state,
58 URLBuilder $url_builder,
59 array $post = null
61}
An exception for terminatinating execution or to throw for unit testing.
Builds data types.
Definition: Factory.php:20
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:10
Build controls for the view.
The URLBuilder allows views to get links that are used somewhere inline in the content.
Definition: URLBuilder.php:13
A kiosk mode view on a certain object.
Definition: View.php:14
updateGet(State $state, string $command, int $parameter=null)
Update the state based on the provided command.
buildInitialState(State $empty_state)
Build an initial state based on the Provided empty state.
buildControls(State $state, ControlBuilder $builder)
Construct the controls for the view based on the current state.
render(State $state, UI\Factory $factory, URLBuilder $url_builder, array $post=null)
Render a state using the ui-factory and URLs from the builder.
updatePost(State $state, string $command, array $post)
Update the state and the object based on the provided command and post-data.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
$factory
Definition: metadata.php:58
Class Factory.
$builder
Definition: parser.php:5