ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
View.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\KioskMode;
22
23use ILIAS\UI;
24
30interface View
31{
35 public function buildInitialState(State $empty_state): State;
36
43 public function buildControls(State $state, ControlBuilder $builder);
44
53 public function updateGet(State $state, string $command, ?int $parameter = null): State;
54
62 public function updatePost(State $state, string $command, array $post): State;
63
72 public function render(
73 State $state,
74 UI\Factory $factory,
75 URLBuilder $url_builder,
76 ?array $post = null
78}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:27
Definition: UI.php:24
Build controls for the view.
The URLBuilder allows views to get links that are used somewhere inline in the content.
Definition: URLBuilder.php:30
A kiosk mode view on a certain object.
Definition: View.php:31
buildInitialState(State $empty_state)
Build an initial state based on the Provided empty 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.
buildControls(State $state, ControlBuilder $builder)
Construct the controls for the view based on the current state.
updateGet(State $state, string $command, ?int $parameter=null)
Update the state based on the provided command.
updatePost(State $state, string $command, array $post)
Update the state and the object based on the provided command and post-data.
$post
Definition: ltitoken.php:46
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...