ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\GlobalScreen\Services Class Reference

Class Services. More...

+ Collaboration diagram for ILIAS\GlobalScreen\Services:

Public Member Functions

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

Data Fields

string $resource_version = ''
 

Private Attributes

ProviderFactory $provider_factory
 
ToastServices $toast_services
 

Static Private Attributes

static Services $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 39 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

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

Services constructor.

Parameters
ProviderFactory$provider_factory
string$resource_version

Definition at line 55 of file Services.php.

References $DIC, and ILIAS\GlobalScreen\Services\$provider_factory.

59  {
60  global $DIC;
61  $this->provider_factory = $provider_factory;
62  $this->resource_version = urlencode($resource_version);
63  $this->toast_services = new ToastServices($ui ?? $DIC->ui());
64  }
global $DIC
Definition: feed.php:28
ProviderFactory $provider_factory
Definition: Services.php:45

Member Function Documentation

◆ collector()

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

Definition at line 116 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

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

◆ identification()

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

Definition at line 125 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

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

◆ layout()

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

Definition at line 95 of file Services.php.

References ILIAS\GlobalScreen\getWithArgument().

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

95  : LayoutServices
96  {
97  return $this->getWithArgument(LayoutServices::class, $this->resource_version);
98  }
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 ( )
Returns
MainMenuItemFactory
See also
MainMenuItemFactory

Definition at line 70 of file Services.php.

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

◆ metaBar()

ILIAS\GlobalScreen\Services::metaBar ( )
Returns
MetaBarItemFactory

Definition at line 78 of file Services.php.

78  : MetaBarItemFactory
79  {
80  return $this->get(MetaBarItemFactory::class);
81  }

◆ notifications()

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

Definition at line 103 of file Services.php.

103  : NotificationServices
104  {
105  return $this->get(NotificationServices::class);
106  }

◆ toasts()

ILIAS\GlobalScreen\Services::toasts ( )

Definition at line 108 of file Services.php.

References ILIAS\GlobalScreen\Services\$toast_services.

108  : ToastServices
109  {
110  return $this->toast_services;
111  }
ToastServices $toast_services
Definition: Services.php:46

◆ tool()

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

Definition at line 87 of file Services.php.

87  : ToolServices
88  {
89  return $this->get(ToolServices::class);
90  }

Field Documentation

◆ $instance

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

Definition at line 43 of file Services.php.

◆ $provider_factory

ProviderFactory ILIAS\GlobalScreen\Services::$provider_factory
private

Definition at line 45 of file Services.php.

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

◆ $resource_version

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

Definition at line 48 of file Services.php.

◆ $toast_services

ToastServices ILIAS\GlobalScreen\Services::$toast_services
private

Definition at line 46 of file Services.php.

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


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