ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Menu.php
Go to the documentation of this file.
1<?php
2declare(strict_types=1);
3
4/* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
5
7
10
14abstract 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}
An exception for terminatinating execution or to throw for unit testing.
This describes a Menu Control.
Definition: Menu.php:14
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes.