ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Services.php
Go to the documentation of this file.
1
<?
php
namespace
ILIAS\GlobalScreen
;
2
3
use
ILIAS\GlobalScreen\Collector\CollectorFactory
;
4
use
ILIAS\GlobalScreen\Identification\IdentificationFactory
;
5
use
ILIAS\GlobalScreen\Provider\ProviderFactoryInterface
;
6
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
;
7
13
class
Services
14
{
15
use
SingletonTrait
;
19
private
static
$instance
= null;
23
private
$provider_factory
;
24
25
31
public
function
__construct
(
ProviderFactoryInterface
$provider_factory
)
32
{
33
$this->provider_factory =
$provider_factory
;
34
}
35
36
42
public
static
function
getInstance
(
ProviderFactoryInterface
$provider_factory
)
43
{
44
if
(!isset(self::$instance)) {
45
self::$instance =
new
self
(
$provider_factory
);
46
}
47
48
return
self::$instance;
49
}
50
51
57
public
function
mainmenu
() :
MainMenuItemFactory
58
{
59
return
$this->
get
(MainMenuItemFactory::class);
60
}
61
62
66
public
function
collector
() :
CollectorFactory
67
{
68
return
$this->
getWithArgument
(CollectorFactory::class, $this->provider_factory);
69
}
70
71
77
public
function
identification
() :
IdentificationFactory
78
{
79
return
$this->
getWithArgument
(IdentificationFactory::class, $this->provider_factory);
80
}
81
}
ILIAS\GlobalScreen
ILIAS\GlobalScreen\Services\__construct
__construct(ProviderFactoryInterface $provider_factory)
Services constructor.
Definition:
Services.php:31
MainMenuItemFactory
ILIAS\GlobalScreen\Services\mainmenu
mainmenu()
Definition:
Services.php:57
ILIAS\GlobalScreen\Services\collector
collector()
Definition:
Services.php:66
ILIAS\GlobalScreen\Services\identification
identification()
Definition:
Services.php:77
ILIAS\GlobalScreen\Provider\ProviderFactoryInterface
Interface ProviderFactoryInterface.
Definition:
ProviderFactoryInterface.php:11
CollectorFactory
ILIAS\GlobalScreen\Services\$provider_factory
$provider_factory
Definition:
Services.php:23
ILIAS\GlobalScreen\Scope\MainMenu\Factory\MainMenuItemFactory
Class MainMenuItemFactory.
Definition:
MainMenuItemFactory.php:20
ILIAS\GlobalScreen\Services\$instance
static $instance
Definition:
Services.php:19
ILIAS\GlobalScreen\SingletonTrait
trait SingletonTrait
Class SingletonTrait.
Definition:
SingletonTrait.php:9
ILIAS\GlobalScreen\Services\getInstance
static getInstance(ProviderFactoryInterface $provider_factory)
Definition:
Services.php:42
ILIAS\GlobalScreen\Identification\IdentificationFactory
Class IdentificationFactory.
Definition:
IdentificationFactory.php:34
ILIAS\GlobalScreen\Collector\CollectorFactory
Class CollectorFactory.
Definition:
CollectorFactory.php:16
php
ProviderFactoryInterface
ILIAS\GlobalScreen\getWithArgument
getWithArgument(string $class_name, $argument)
Definition:
SingletonTrait.php:37
IdentificationFactory
Services
Class ilCertificateAppEventListener.
src
GlobalScreen
Services.php
Generated on Thu Jan 16 2025 19:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)