ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
4 namespace ILIAS\KioskMode;
5 
6 use ILIAS\UI;
7 
13 interface 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 }
Class Factory.
buildInitialState(State $empty_state)
Build an initial state based on the Provided empty state.
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:13
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:9
updateGet(State $state, string $command, int $parameter=null)
Update the state based on the provided command.
A kiosk mode view on a certain object.
Definition: View.php:13
buildControls(State $state, ControlBuilder $builder)
Construct the controls for the view based on the current state.
Builds data types.
Definition: Factory.php:19
The URLBuilder allows views to get links that are used somewhere inline in the content.
Definition: URLBuilder.php:12
Build controls for the view.
$builder
Definition: parser.php:5
$factory
Definition: metadata.php:58
render(State $state, UI\Factory $factory, URLBuilder $url_builder, array $post=null)
Render a state using the ui-factory and URLs from the builder.