ILIAS  release_7 Revision v7.30-3-g800a261c036
ViewControl.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
3/* Copyright (c) 2020 Nils Haagen <nhaagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
9use Psr\Http\Message\ServerRequestInterface;
10
11class ViewControl implements I\ViewControl
12{
14
18 protected $controls;
19
20 public function __construct(array $controls)
21 {
22 $this->controls = $controls;
23 }
24
25 public function getInputs() : array
26 {
27 return [];
28 }
29
30 public function withRequest(ServerRequestInterface $request) : I\ViewControl
31 {
32 return $this;
33 }
34
35 public function getData() : array
36 {
37 return [];
38 }
39}
An exception for terminatinating execution or to throw for unit testing.
This describes the basis of all View Control Inputs.
Definition: ViewControl.php:16
trait ComponentHelper
Provides common functionality for component implementations.