ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 public function getLabel(): string
29 {
30 return $this->label;
31 }
32
33 public function hasIcon(): bool
34 {
35 return strlen($this->icon_path) > 0;
36 }
37
38 public function getIconPath(): string
39 {
40 return $this->icon_path;
41 }
42
46 public function setItems(array $items): void
47 {
48 $this->items = $items;
49 }
50
51 public function pushItem(array $item): void
52 {
53 $this->items[] = $item;
54 }
55
56 public function setHasIcon(bool $has_icon): void
57 {
58 $this->has_icon = $has_icon;
59 }
60
61 public function setIconPath(string $icon_path): void
62 {
63 $this->icon_path = $icon_path;
64 }
65
66 public function setLabel(string $label): void
67 {
68 $this->label = $label;
69 }
70
71 public function getItems(): array
72 {
73 return $this->items;
74 }
75}