ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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  Component\Menu\Sub::class,
64  Component\Clickable::class,
65  Component\Link\Link::class,
66  Component\Divider\Horizontal::class,
67  Component\Input\Field\Node\Node::class,
68  ];
69  $this->checkArgListElements("items", $items, $classes);
70  }
71 }