36 require_once(
'./libs/composer/vendor/autoload.php');
46 protected function setUp() : void
53 $this->assertTrue(
true);
56 $collector->collectOnce();
58 $this->assertTrue($collector->hasItems());
64 public function isItemActive(
isItem $item) :
bool 81 return $item->getParent();
97 private $p_identifications;
101 protected $c_identifications;
106 $iff =
function (
string $id) use ($if) {
107 return $if->core($this)->identifier($id);
110 $this->p_identifications = [];
111 $this->c_identifications = [];
113 $this->type_information->add();
115 for ($x = 1; $x < 5; $x++) {
116 $this->p_identifications[
'id_' . $x] = $iff(
'id_' . $x);
117 for ($y = 1; $y < 5; $y++) {
118 $this->c_identifications[] = $iff(
'id_' . $x .
'/' . $y);
123 public function getAllIdentifications() : array
128 public function getFullyQualifiedClassName() :
string 138 public function getStaticTopItems() : array
141 foreach ($this->p_identifications as $if) {
142 $items[] = $this->factory->topParentItem($if)->withTitle($if->getInternalIdentifier());
147 public function getStaticSubItems() : array
150 foreach ($this->c_identifications as $if) {
151 $identifier = $if->getInternalIdentifier();
152 $items[] = $this->factory->link($if)->withTitle($identifier)->withParent($this->p_identifications[strstr($identifier,
'/',
true)]);
159 return $this->type_information;
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Interface IdentificationInterface.
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
Class TypeInformationCollection.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface hasSymbol Methods for Entries with Symbols.
getProviderNameForPresentation()
Class NullProviderFactory.
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Interface StaticMainMenuProvider.
__construct($a_client_id=0)
Constructor setup ILIAS global object public.