ILIAS  release_8 Revision v8.24
View.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 2018 - Richard Klees <richard.klees@concepts-and-training.de> - Extended GPL, see LICENSE */
6
7namespace ILIAS\KioskMode;
8
9use ILIAS\UI;
10
16interface View
17{
21 public function buildInitialState(State $empty_state): State;
22
29 public function buildControls(State $state, ControlBuilder $builder);
30
39 public function updateGet(State $state, string $command, int $parameter = null): State;
40
48 public function updatePost(State $state, string $command, array $post): State;
49
58 public function render(
59 State $state,
61 URLBuilder $url_builder,
62 array $post = null
64}
Builds data types.
Definition: Factory.php:21
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:13
Build controls for the view.
The URLBuilder allows views to get links that are used somewhere inline in the content.
Definition: URLBuilder.php:16
A kiosk mode view on a certain object.
Definition: View.php:17
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.
$post
Definition: ltitoken.php:49
$factory
Definition: metadata.php:75
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class Factory.