ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
CollectorFactory.php
Go to the documentation of this file.
1
<?
php
namespace
ILIAS\GlobalScreen\Collector
;
2
3
use
ILIAS\GlobalScreen\Provider\ProviderFactoryInterface
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider
;
6
use
ILIAS\GlobalScreen\Scope\MetaBar\Collector\MetaBarMainCollector
;
7
use
ILIAS\GlobalScreen\Scope\MetaBar\Provider\StaticMetaBarProvider
;
8
use
ILIAS\GlobalScreen\Scope\Tool\Collector\MainToolCollector
;
9
use
ILIAS\GlobalScreen\Scope\Tool\Provider\DynamicToolProvider
;
10
16
class
CollectorFactory
17
{
18
22
protected
static
$instances
= [];
26
private
$provider_factory
;
27
28
34
public
function
__construct
(
ProviderFactoryInterface
$provider_factory
)
35
{
36
$this->provider_factory =
$provider_factory
;
37
}
38
39
44
public
function
mainmenu
() :
MainMenuMainCollector
45
{
46
if
(!isset(self::$instances[StaticMainMenuProvider::class])) {
47
$providers = $this->provider_factory->getMainBarProvider();
48
$information = $this->provider_factory->getMainBarItemInformation();
49
self::$instances[StaticMainMenuProvider::class] =
new
MainMenuMainCollector
($providers, $information);
50
}
51
52
return
self::$instances[StaticMainMenuProvider::class];
53
}
54
}
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
Class MainMenuMainCollector.
Definition:
MainMenuMainCollector.php:28
ILIAS\GlobalScreen\Collector\CollectorFactory\$instances
static $instances
Definition:
CollectorFactory.php:22
ILIAS\GlobalScreen\Collector\CollectorFactory\mainmenu
mainmenu()
Definition:
CollectorFactory.php:44
ILIAS\GlobalScreen\Provider\ProviderFactoryInterface
Interface ProviderFactoryInterface.
Definition:
ProviderFactoryInterface.php:11
MainMenuMainCollector
StaticMainMenuProvider
StaticMetaBarProvider
DynamicToolProvider
MetaBarMainCollector
MainToolCollector
ILIAS\GlobalScreen\Collector\CollectorFactory\__construct
__construct(ProviderFactoryInterface $provider_factory)
CollectorFactory constructor.
Definition:
CollectorFactory.php:34
ILIAS\GlobalScreen\Collector\CollectorFactory
Class CollectorFactory.
Definition:
CollectorFactory.php:16
php
ProviderFactoryInterface
ILIAS\GlobalScreen\Collector
Definition:
CollectorFactory.php:1
ILIAS\GlobalScreen\Collector\CollectorFactory\$provider_factory
$provider_factory
Definition:
CollectorFactory.php:26
src
GlobalScreen
Collector
CollectorFactory.php
Generated on Thu Jan 16 2025 19:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)