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