ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
Listing.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Listing
;
6
7
use
ILIAS\UI\Component
as
C
;
8
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
9
14
class
Listing
implements
C\Listing\Listing
15
{
16
use
ComponentHelper
;
17
21
private
$items
;
22
23
28
public
function
__construct
(
$items
)
29
{
30
$types = array(
'string'
,
C
\Component::class);
31
$this->
checkArgListElements
(
"items"
,
$items
, $types);
32
$this->items =
$items
;
33
}
34
38
public
function
withItems
(array
$items
)
39
{
40
$types = array(
'string'
,
C
\Component::class);
41
$this->
checkArgListElements
(
"items"
, $items, $types);
42
43
$clone = clone $this;
44
$clone->items =
$items
;
45
return
$clone;
46
}
47
51
public
function
getItems
()
52
{
53
return
$this->items
;
54
}
55
}
ILIAS\UI\Implementation\Component\Listing\Listing\__construct
__construct($items)
Listing constructor.
Definition:
Listing.php:28
ILIAS\UI\Implementation\Component\Listing\Listing\$items
$items
Definition:
Listing.php:21
ILIAS\UI\Implementation\Component\Listing\Listing\getItems
getItems()
Definition:
Listing.php:51
ILIAS\UI\Implementation\Component\Listing\Listing\withItems
withItems(array $items)
Definition:
Listing.php:38
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\Listing\Listing
Definition:
Listing.php:14
ILIAS\UI\Implementation\Component\Listing
ILIAS\UI\Implementation\Component\checkArgListElements
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes. ...
Definition:
ComponentHelper.php:217
src
UI
Implementation
Component
Listing
Listing.php
Generated on Fri Apr 11 2025 21:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)