ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AbstractStaticMainMenuProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
34{
35 protected Container $dic;
38
42 public function __construct(Container $dic)
43 {
45 $this->mainmenu = $this->globalScreen()->mainBar();
46 $this->if = $this->globalScreen()->identification()->core($this);
47 }
48
52 public function getAllIdentifications(): array
53 {
54 $ids = [];
55 foreach ($this->getStaticTopItems() as $slate) {
56 $ids[] = $slate->getProviderIdentification();
57 }
58 foreach ($this->getStaticSubItems() as $entry) {
59 $ids[] = $entry->getProviderIdentification();
60 }
61
62 return $ids;
63 }
64
69 {
70 return new TypeInformationCollection();
71 }
72}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc