ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
class.ilPDSelectedItemsBlockGroup.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 protected bool $has_icon = false;
24 protected string $icon_path = '';
25 protected string $label = '';
26 protected array $items = [];
27
28 final public function getLabel(): string
29 {
30 return $this->label;
31 }
32
33 final public function hasIcon(): bool
34 {
35 return $this->icon_path !== '';
36 }
37
38 final public function getIconPath(): string
39 {
40 return $this->icon_path;
41 }
42
46 final public function setItems(array $items): void
47 {
48 $this->items = $items;
49 }
50
51 final public function pushItem(array $item): void
52 {
53 $this->items[] = $item;
54 }
55
56 final public function setHasIcon(bool $has_icon): void
57 {
58 $this->has_icon = $has_icon;
59 }
60
61 final public function setIconPath(string $icon_path): void
62 {
63 $this->icon_path = $icon_path;
64 }
65
66 final public function setLabel(string $label): void
67 {
68 $this->label = $label;
69 }
70
71 final public function getItems(): array
72 {
73 return $this->items;
74 }
75}