ILIAS  release_8 Revision v8.24
Listing.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
24use ILIAS\UI\Implementation\Component\ComponentHelper;
25
30class Listing implements C\Listing\Listing
31{
32 use ComponentHelper;
33
34 private array $items;
35
39 public function __construct(array $items)
40 {
41 $types = array('string',C\Component::class);
42 $this->checkArgListElements("items", $items, $types);
43 $this->items = $items;
44 }
45
49 public function withItems(array $items): C\Listing\Listing
50 {
51 $types = array('string',C\Component::class);
52 $this->checkArgListElements("items", $items, $types);
53
54 $clone = clone $this;
55 $clone->items = $items;
56 return $clone;
57 }
58
62 public function getItems(): array
63 {
64 return $this->items;
65 }
66}
__construct(array $items)
Listing constructor.
Definition: Listing.php:39
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...