ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ArrayInputData.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Input
;
22
23
use
LogicException
;
24
28
class
ArrayInputData
implements
InputData
29
{
30
protected
array
$data
;
31
32
public
function
__construct
(array $data)
33
{
34
$this->data =
$data
;
35
}
36
37
public
function
get
(
$name
)
38
{
39
if
(!$this->
has
(
$name
)) {
40
throw
new
LogicException
(
"'$name' is not contained in provided data."
);
41
}
42
43
return
$this->data[
$name
];
44
}
45
46
public
function
getOr
(
$name
, $default)
47
{
48
return
$this->data[
$name
] ?? $default;
49
}
50
51
public
function
has
(
$name
): bool
52
{
53
return
array_key_exists(
$name
, $this->data);
54
}
55
}
LogicException
ILIAS\UI\Implementation\Component\Input\ArrayInputData
Definition:
ArrayInputData.php:28
ILIAS\UI\Implementation\Component\Input\ArrayInputData\has
has($name)
Definition:
ArrayInputData.php:51
ILIAS\UI\Implementation\Component\Input\InputData
Describes how Input-Elements want to interact with posted data.
Definition:
InputData.php:29
$name
if($format !==null) $name
Definition:
metadata.php:247
ILIAS\UI\Implementation\Component\Input\ArrayInputData\$data
array $data
Definition:
ArrayInputData.php:30
ILIAS\UI\Implementation\Component\Input\ArrayInputData\getOr
getOr($name, $default)
Definition:
ArrayInputData.php:46
ILIAS\UI\Implementation\Component\Input\ArrayInputData\__construct
__construct(array $data)
Definition:
ArrayInputData.php:32
ILIAS\UI\Implementation\Component\Input
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArrayInputData.php:21
src
UI
Implementation
Component
Input
ArrayInputData.php
Generated on Tue Apr 1 2025 22:02:50 for ILIAS by
1.8.13 (using
Doxyfile
)