ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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
use
ComponentHelper
;
16
20
private
$items
;
21
22
27
public
function
__construct
(
$items
) {
28
$types =
array
(
'string'
,
C
\Component::class);
29
$this->checkArgListElements(
"items"
,
$items
, $types);
30
$this->items =
$items
;
31
}
32
36
public
function
withItems
(
array
$items
){
37
$types =
array
(
'string'
,
C
\Component::class);
38
$this->checkArgListElements(
"items"
, $items, $types);
39
40
$clone = clone $this;
41
$clone->items =
$items
;
42
return
$clone;
43
}
44
48
public
function
getItems
() {
49
return
$this->items
;
50
}
51
}
ILIAS\UI\Implementation\Component\Listing\Listing\__construct
__construct($items)
Listing constructor.
Definition:
Listing.php:27
ILIAS\UI\Implementation\Component\Listing\Listing\$items
$items
Definition:
Listing.php:20
ILIAS\UI\Implementation\Component\Listing\Listing\getItems
getItems()
Definition:
Listing.php:48
ILIAS\UI\Implementation\Component\Listing\Listing\withItems
withItems(array $items)
Definition:
Listing.php:36
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\Listing\Listing
Definition:
Listing.php:14
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ILIAS\UI\Implementation\Component\Listing
Definition:
Descriptive.php:5
ComponentHelper
php
ComponentHelper
src
UI
Implementation
Component
Listing
Listing.php
Generated on Fri Jan 24 2025 19:01:18 for ILIAS by
1.8.13 (using
Doxyfile
)