ILIAS  release_8 Revision v8.23
InputData.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use LogicException;
24 
29 interface InputData
30 {
37  public function get(string $name);
38 
46  public function getOr(string $name, $default);
47 
51  public function has(string $name): bool;
52 }
getOr(string $name, $default)
Get a named value from the data and fallback to default if that name does not exist.
Describes how Input-Elements want to interact with posted data.
Definition: InputData.php:29
if($format !==null) $name
Definition: metadata.php:247
has(string $name)
Check for existence of parameter name in data.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...