ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
Descriptive.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Listing
;
22
23
use
ILIAS\UI\Component
as
C
;
24
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
25
30
class
Descriptive
implements
C\Listing\Descriptive
31
{
32
use
ComponentHelper
;
33
34
private
array
$items
;
35
36
public
function
__construct
(array $items)
37
{
38
$this->checkArgList(
39
"Descriptive List items"
,
40
$items,
41
fn ($k, $v) => is_string($k) && (is_string($v) || $v instanceof
C
\
Component
),
42
fn ($k, $v) =>
"expected keys of type string and values of type string|Component, got ($k => $v)"
43
);
44
45
$this->items =
$items
;
46
}
47
51
public
function
withItems
(array $items):
C
\
Listing
\
Descriptive
52
{
53
$this->checkArgList(
54
"Descriptive List items"
,
55
$items,
56
fn ($k, $v) => is_string($k) && (is_string($v) || $v instanceof
C
\
Component
),
57
fn ($k, $v) =>
"expected keys of type string and values of type string|Component, got ($k => $v)"
58
);
59
60
$clone = clone $this;
61
$clone->items =
$items
;
62
return
$clone;
63
}
64
68
public
function
getItems
(): array
69
{
70
return
$this->items
;
71
}
72
}
ILIAS\UI\Implementation\Component\Listing\Descriptive\getItems
getItems()
Definition:
Descriptive.php:68
ILIAS\UI\Implementation\Component\Listing\Descriptive\$items
array $items
Definition:
Descriptive.php:34
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\Listing\Listing
Definition:
Listing.php:30
ILIAS\UI\Implementation\Component\Listing\Descriptive\withItems
withItems(array $items)
Definition:
Descriptive.php:51
ILIAS\UI\Implementation\Component\Listing\Descriptive
Definition:
Descriptive.php:30
ILIAS\UI\Implementation\Component\Listing\Descriptive\__construct
__construct(array $items)
Definition:
Descriptive.php:36
ILIAS\UI\Implementation\Component\Listing
ComponentHelper
ComponentHelper
components
ILIAS
UI
src
Implementation
Component
Listing
Descriptive.php
Generated on Sat Apr 5 2025 23:04:24 for ILIAS by
1.8.13 (using
Doxyfile
)