ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\GlobalScreen\Services Class Reference
+ Collaboration diagram for ILIAS\GlobalScreen\Services:

Public Member Functions

 __construct (private ProviderFactory $provider_factory, ?UIServices $ui=null, string $resource_version='')
 Services constructor. More...
 
 mainBar ()
 
 metaBar ()
 
 footer ()
 
 tool ()
 
 layout ()
 
 notifications ()
 
 toasts ()
 
 collector ()
 
 identification ()
 

Data Fields

string $resource_version = ''
 

Private Attributes

ToastServices $toast_services
 

Static Private Attributes

static Services $instance = null
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s TODO: Remove SingletonTrait

Definition at line 40 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Services::__construct ( private ProviderFactory  $provider_factory,
?UIServices  $ui = null,
string  $resource_version = '' 
)

Services constructor.

Parameters
ProviderFactory$provider_factory
string$resource_version

Definition at line 54 of file Services.php.

References $DIC.

58  {
59  global $DIC;
60  $this->resource_version = urlencode($resource_version);
61  $this->toast_services = new ToastServices($ui ?? $DIC->ui());
62  }
global $DIC
Definition: shib_login.php:26

Member Function Documentation

◆ collector()

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

Definition at line 113 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

113  : CollectorFactory
114  {
115  return $this->getWithArgument(CollectorFactory::class, $this->provider_factory);
116  }
getWithArgument(string $class_name, $argument)
+ Here is the call graph for this function:

◆ footer()

ILIAS\GlobalScreen\Services::footer ( )

Definition at line 75 of file Services.php.

75  : FooterItemFactory
76  {
77  return $this->get(FooterItemFactory::class);
78  }

◆ identification()

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

Definition at line 122 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

122  : IdentificationFactory
123  {
124  return $this->getWithArgument(IdentificationFactory::class, $this->provider_factory);
125  }
getWithArgument(string $class_name, $argument)
+ Here is the call graph for this function:

◆ layout()

ILIAS\GlobalScreen\Services::layout ( )
Returns
LayoutServices

Definition at line 92 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

Referenced by ILIAS\components\Export\HTML\Util\exportResourceFiles().

92  : LayoutServices
93  {
94  return $this->getWithArgument(LayoutServices::class, $this->resource_version);
95  }
getWithArgument(string $class_name, $argument)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mainBar()

ILIAS\GlobalScreen\Services::mainBar ( )

Definition at line 64 of file Services.php.

64  : MainMenuItemFactory
65  {
66  return $this->get(MainMenuItemFactory::class);
67  }

◆ metaBar()

ILIAS\GlobalScreen\Services::metaBar ( )

Definition at line 70 of file Services.php.

70  : MetaBarItemFactory
71  {
72  return $this->get(MetaBarItemFactory::class);
73  }

◆ notifications()

ILIAS\GlobalScreen\Services::notifications ( )
Returns
NotificationServices

Definition at line 100 of file Services.php.

100  : NotificationServices
101  {
102  return $this->get(NotificationServices::class);
103  }

◆ toasts()

ILIAS\GlobalScreen\Services::toasts ( )

Definition at line 105 of file Services.php.

References ILIAS\GlobalScreen\Services\$toast_services.

105  : ToastServices
106  {
107  return $this->toast_services;
108  }
ToastServices $toast_services
Definition: Services.php:45

◆ tool()

ILIAS\GlobalScreen\Services::tool ( )
Returns
ToolServices
See also
ToolServices

Definition at line 84 of file Services.php.

84  : ToolServices
85  {
86  return $this->get(ToolServices::class);
87  }

Field Documentation

◆ $instance

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

Definition at line 44 of file Services.php.

◆ $resource_version

string ILIAS\GlobalScreen\Services::$resource_version = ''

Definition at line 47 of file Services.php.

◆ $toast_services

ToastServices ILIAS\GlobalScreen\Services::$toast_services
private

Definition at line 45 of file Services.php.

Referenced by ILIAS\GlobalScreen\Services\toasts().


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