ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
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.
$factory
Definition: metadata.php:43
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.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
$post
Definition: post.php:34
Builds data types.
Definition: Factory.php:14
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
render(State $state, UI\Factory $factory, URLBuilder $url_builder, array $post=null)
Render a state using the ui-factory and URLs from the builder.