ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
AbstractStaticMainMenuProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Provider
;
22
23
use
ILIAS\DI\Container
;
24
use
ILIAS\GlobalScreen\Identification\IdentificationProviderInterface
;
25
use
ILIAS\GlobalScreen\Provider\AbstractProvider
;
26
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Information\TypeInformationCollection
;
27
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
;
28
33
abstract
class
AbstractStaticMainMenuProvider
extends
AbstractProvider
implements
StaticMainMenuProvider
34
{
35
protected
Container
$dic
;
36
protected
IdentificationProviderInterface
$if
;
37
protected
MainMenuItemFactory
$mainmenu
;
38
42
public
function
__construct
(
Container
$dic
)
43
{
44
parent::__construct
(
$dic
);
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
68
public
function
provideTypeInformation
():
TypeInformationCollection
69
{
70
return
new
TypeInformationCollection
();
71
}
72
}
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:36
ILIAS\GlobalScreen\Provider\AbstractProvider
Definition:
AbstractProvider.php:30
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:38
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Information\TypeInformationCollection
Class TypeInformationCollection.
Definition:
TypeInformationCollection.php:28
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
Definition:
MainMenuItemFactory.php:39
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:34
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\provideTypeInformation
provideTypeInformation()
@inheritDoc
Definition:
AbstractStaticMainMenuProvider.php:68
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$mainmenu
MainMenuItemFactory $mainmenu
Definition:
AbstractStaticMainMenuProvider.php:37
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\getAllIdentifications
getAllIdentifications()
@inheritDoc
Definition:
AbstractStaticMainMenuProvider.php:52
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\__construct
__construct(Container $dic)
@inheritDoc
Definition:
AbstractStaticMainMenuProvider.php:42
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic
Container $dic
Definition:
AbstractStaticMainMenuProvider.php:35
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$if
IdentificationProviderInterface $if
Definition:
AbstractStaticMainMenuProvider.php:36
ILIAS\GlobalScreen\Identification\IdentificationProviderInterface
Class IdentificationProviderInterface.
Definition:
IdentificationProviderInterface.php:28
ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
StaticMainMenuProvider.php:33
ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider\getStaticTopItems
getStaticTopItems()
ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider\getStaticSubItems
getStaticSubItems()
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\GlobalScreen\Scope\MainMenu\Provider
Definition:
AbstractStaticMainMenuPluginProvider.php:21
components
ILIAS
GlobalScreen
src
Scope
MainMenu
Provider
AbstractStaticMainMenuProvider.php
Generated on Sat Oct 18 2025 23:03:07 for ILIAS by
1.9.4 (using
Doxyfile
)