ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Menu.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
4 /* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
5 
7 
10 
14 abstract class Menu implements IMenu\Menu
15 {
19  protected $items = [];
20 
24  public function getItems() : array
25  {
26  return $this->items;
27  }
28 
32  protected function checkItemParameter(array $items)
33  {
34  $classes = [
35  Sub::class,
36  Component\Clickable::class,
37  Component\Link\Link::class,
38  Component\Divider\Horizontal::class
39  ];
40  $this->checkArgListElements("items", $items, $classes);
41  }
42 }
This describes a Menu Control.
Definition: Menu.php:13
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes. ...