ILIAS  release_8 Revision v8.24
Menu.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
25use ILIAS\UI\Implementation\Component\ComponentHelper;
26
30abstract class Menu implements IMenu\Menu
31{
32 use ComponentHelper;
33
37 protected $label;
38
42 protected array $items = [];
43
47 public function getLabel(): string
48 {
49 return $this->label;
50 }
51
55 public function getItems(): array
56 {
57 return $this->items;
58 }
59
60 protected function checkItemParameter(array $items): void
61 {
62 $classes = [
63 Sub::class,
64 Component\Clickable::class,
65 Component\Link\Link::class,
66 Component\Divider\Horizontal::class
67 ];
68 $this->checkArgListElements("items", $items, $classes);
69 }
70}
This describes a Menu Control.
Definition: Menu.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Drilldown.php:21
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...
Definition: Drilldown.php:21