ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Menu.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
30 abstract 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 }