ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\GlobalScreen\Services Class Reference

Class Services. More...

+ Collaboration diagram for ILIAS\GlobalScreen\Services:

Public Member Functions

 __construct (ProviderFactoryInterface $provider_factory)
 Services constructor. More...
 
 mainmenu ()
 
 collector ()
 
 identification ()
 

Static Public Member Functions

static getInstance (ProviderFactoryInterface $provider_factory)
 

Private Attributes

 $provider_factory
 

Static Private Attributes

static $instance = null
 

Detailed Description

Class Services.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 13 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Services::__construct ( ProviderFactoryInterface  $provider_factory)

Services constructor.

Parameters
ProviderFactoryInterface$provider_factory

Definition at line 31 of file Services.php.

References ILIAS\GlobalScreen\Services\$provider_factory.

32  {
33  $this->provider_factory = $provider_factory;
34  }

Member Function Documentation

◆ collector()

ILIAS\GlobalScreen\Services::collector ( )
Returns
CollectorFactory

Definition at line 66 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

66  : CollectorFactory
67  {
68  return $this->getWithArgument(CollectorFactory::class, $this->provider_factory);
69  }
getWithArgument(string $class_name, $argument)
+ Here is the call graph for this function:

◆ getInstance()

static ILIAS\GlobalScreen\Services::getInstance ( ProviderFactoryInterface  $provider_factory)
static
Parameters
ProviderFactoryInterface$provider_factory
Returns
Services

Definition at line 42 of file Services.php.

References ILIAS\GlobalScreen\Services\$provider_factory.

43  {
44  if (!isset(self::$instance)) {
45  self::$instance = new self($provider_factory);
46  }
47 
48  return self::$instance;
49  }

◆ identification()

ILIAS\GlobalScreen\Services::identification ( )
Returns
IdentificationFactory
See also
IdentificationFactory

Definition at line 77 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

77  : IdentificationFactory
78  {
79  return $this->getWithArgument(IdentificationFactory::class, $this->provider_factory);
80  }
getWithArgument(string $class_name, $argument)
+ Here is the call graph for this function:

◆ mainmenu()

ILIAS\GlobalScreen\Services::mainmenu ( )
Returns
MainMenuItemFactory
See also
MainMenuItemFactory

Definition at line 57 of file Services.php.

57  : MainMenuItemFactory
58  {
59  return $this->get(MainMenuItemFactory::class);
60  }

Field Documentation

◆ $instance

ILIAS\GlobalScreen\Services::$instance = null
staticprivate

Definition at line 19 of file Services.php.

◆ $provider_factory

ILIAS\GlobalScreen\Services::$provider_factory
private

The documentation for this class was generated from the following file: