ILIAS  release_8 Revision v8.24
class.ilPDSelectedItemsBlockGroup.php
Go to the documentation of this file.
1<?php
2
20{
21 protected bool $has_icon = false;
22 protected string $icon_path = '';
23 protected string $label = '';
24 protected array $items = array();
25
26 public function getLabel(): string
27 {
28 return $this->label;
29 }
30
31 public function hasIcon(): bool
32 {
33 return strlen($this->icon_path) > 0;
34 }
35
36 public function getIconPath(): string
37 {
38 return $this->icon_path;
39 }
40
44 public function setItems(array $items): void
45 {
46 $this->items = $items;
47 }
48
52 public function pushItem(array $item): void
53 {
54 $this->items[] = $item;
55 }
56
57 public function setHasIcon(bool $has_icon): void
58 {
59 $this->has_icon = $has_icon;
60 }
61
62 public function setIconPath(string $icon_path): void
63 {
64 $this->icon_path = $icon_path;
65 }
66
67 public function setLabel(string $label): void
68 {
69 $this->label = $label;
70 }
71
72 public function getItems(): array
73 {
74 return $this->items;
75 }
76}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...