ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
AbstractStaticMainMenuProvider.php
Go to the documentation of this file.
1 <?php
2 
3 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:31
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...