ILIAS  release_7 Revision v7.30-3-g800a261c036
AbstractStaticMainMenuProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
27
33{
37 protected $dic;
41 protected $if;
45 protected $mainmenu;
46
50 public function __construct(Container $dic)
51 {
53 $this->mainmenu = $this->globalScreen()->mainBar();
54 $this->if = $this->globalScreen()->identification()->core($this);
55 }
56
60 public function getAllIdentifications() : array
61 {
62 $ids = [];
63 foreach ($this->getStaticTopItems() as $slate) {
64 $ids[] = $slate->getProviderIdentification();
65 }
66 foreach ($this->getStaticSubItems() as $entry) {
67 $ids[] = $entry->getProviderIdentification();
68 }
69
70 return $ids;
71 }
72
77 {
78 return new TypeInformationCollection();
79 }
80}
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:19
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc