ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
View.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\KioskMode;
22 
23 use ILIAS\UI;
24 
30 interface 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
77  ): UI\Component\Component;
78 }
render(State $state, UI\Factory $factory, URLBuilder $url_builder, ?array $post=null)
Render a state using the ui-factory and URLs from the builder.
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.
updateGet(State $state, string $command, ?int $parameter=null)
Update the state based on the provided command.
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:26
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
A kiosk mode view on a certain object.
Definition: View.php:30
buildControls(State $state, ControlBuilder $builder)
Construct the controls for the view based on the current state.
Builds data types.
Definition: Factory.php:35
The URLBuilder allows views to get links that are used somewhere inline in the content.
Definition: URLBuilder.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Build controls for the view.
$post
Definition: ltitoken.php:46