20 require_once(
'./libs/composer/vendor/autoload.php');
30 protected function setUp() : void
38 $this->assertTrue(
true);
41 $collector->collectOnce();
43 $this->assertTrue($collector->hasItems());
48 return new class implements ItemInformation {
49 public function isItemActive(
isItem $item) :
bool 79 return new class implements StaticMainMenuProvider {
83 private $p_identifications;
87 protected $c_identifications;
92 $iff =
function (
string $id) use (
$if) {
93 return $if->core($this)->identifier($id);
96 $this->p_identifications = [];
97 $this->c_identifications = [];
99 $this->type_information->add();
101 for ($x = 1; $x < 5; $x++) {
102 $this->p_identifications[
'id_' . $x] = $iff(
'id_' . $x);
103 for ($y = 1; $y < 5; $y++) {
104 $this->c_identifications[] = $iff(
'id_' . $x .
'/' . $y);
109 public function getAllIdentifications() : array
114 public function getFullyQualifiedClassName() :
string 124 public function getStaticTopItems() : array
127 foreach ($this->p_identifications as
$if) {
128 $items[] = $this->factory->topParentItem($if)->withTitle($if->getInternalIdentifier());
133 public function getStaticSubItems() : array
136 foreach ($this->c_identifications as
$if) {
137 $identifier = $if->getInternalIdentifier();
138 $items[] = $this->factory->link($if)->withTitle($identifier)->withParent($this->p_identifications[strstr($identifier,
'/',
true)]);
145 return $this->type_information;
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Interface IdentificationInterface.
Class MainMenuItemFactory.
Class TypeInformationCollection.
Interface hasSymbol Methods for Entries with Symbols.
getProviderNameForPresentation()
Class NullProviderFactory.
Class IdentificationFactory.
Interface StaticMainMenuProvider.
__construct($a_client_id=0)
Constructor setup ILIAS global object public.