ILIAS  release_7 Revision v7.30-3-g800a261c036
Services.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
22namespace ILIAS\GlobalScreen;
23
33
39{
41
45 private static $instance;
46
51
55 public $resource_version = '';
56
62 public function __construct(
64 string $resource_version = ''
65 ) {
66 global $DIC;
67 $this->provider_factory = $provider_factory;
68 $this->resource_version = urlencode($resource_version);
69 }
70
75 public function mainBar() : MainMenuItemFactory
76 {
77 return $this->get(MainMenuItemFactory::class);
78 }
79
83 public function metaBar() : MetaBarItemFactory
84 {
85 return $this->get(MetaBarItemFactory::class);
86 }
87
92 public function tool() : ToolServices
93 {
94 return $this->get(ToolServices::class);
95 }
96
100 public function layout() : LayoutServices
101 {
102 return $this->getWithArgument(LayoutServices::class, $this->resource_version);
103 }
104
109 {
110 return $this->get(NotificationServices::class);
111 }
112
116 public function collector() : CollectorFactory
117 {
118 return $this->getWithArgument(CollectorFactory::class, $this->provider_factory);
119 }
120
126 {
127 return $this->getWithArgument(IdentificationFactory::class, $this->provider_factory);
128 }
129}
An exception for terminatinating execution or to throw for unit testing.
Provides fluid interface to RBAC services.
Definition: UIServices.php:10
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
Class MetaBarItemFactory This factory provides you all available types for MainMenu GlobalScreen Item...
__construct(ProviderFactory $provider_factory, string $resource_version='')
Services constructor.
Definition: Services.php:62
global $DIC
Definition: goto.php:24
@noinspection PhpIncompatibleReturnTypeInspection
trait SingletonTrait
Class SingletonTrait.
getWithArgument(string $class_name, $argument)
Class ilAsqQuestionAuthoringFactory.