ILIAS
release_8 Revision v8.23
|
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the supplying components mentioned in the readme. More...
Public Member Functions | |
__construct (ProviderFactory $provider_factory) | |
IdentificationFactory constructor. More... | |
core (Provider $provider) | |
Returns a IdentificationProvider for core components, only a Provider is needed. More... | |
tool (Provider $provider) | |
Returns a IdentificationProvider for core tools, only a Provider is needed. More... | |
plugin (string $plugin_id, Provider $provider) | |
Returns a IdentificationProvider for ILIAS-Plugins which takes care of the plugin_id for further identification where a provided GlobalScreen-element comes from (e.g. More... | |
fromSerializedIdentification ($serialized_string) | |
Protected Attributes | |
ProviderFactory | $provider_factory |
SerializerFactory | $serializer_factory |
IdentificationMap | $map |
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the supplying components mentioned in the readme.
The GlobalScreen service uses this identification, for example, for parent/child relationships. The identification is also forwarded to the UI service or to the instance that then renders the GlobalScreen elements. This means that the identification can be used there again, for example, to generate unique IDs for the online help. There will be at least two IdentificationProvider, one for core components and one for plugins. This factory allows to acces both. The identification you get can be serialized and is used e.g. to store in database and cache. you don't need to take care of storing this. Since you are passing some identifiers as a string such as 'personal_desktop' the GlobalScreen-Services must take care after naming collisions. Therefore you always pass your Provider (or even the Plugin-Class in case of Plugins) and the GlobalScreen- Services will use this information to generate unique identifications. Currently Identifications are only used for the GlobalScreen-MainMenu-Elements. Other like Footer may follow.
Definition at line 47 of file IdentificationFactory.php.
|
final |
IdentificationFactory constructor.
ProviderFactory | $provider_factory |
Definition at line 57 of file IdentificationFactory.php.
References ILIAS\GlobalScreen\Identification\IdentificationFactory\$provider_factory.
|
final |
Returns a IdentificationProvider for core components, only a Provider is needed.
Definition at line 68 of file IdentificationFactory.php.
References ILIAS\GlobalScreen\Identification\IdentificationFactory\$map.
Referenced by ILIAS\GlobalScreen\MainMenu\IdentificationFactoryTest\testSerializingCore(), and ILIAS\GlobalScreen\MainMenu\IdentificationFactoryTest\testUnserializingCore().
|
final |
$serialized_string |
Definition at line 97 of file IdentificationFactory.php.
Referenced by ILIAS\GlobalScreen\MainMenu\IdentificationFactoryTest\testFactoryMustReturnCorrectTypeCore(), ILIAS\GlobalScreen\MainMenu\IdentificationFactoryTest\testFactoryMustReturnCorrectTypePlugin(), ILIAS\GlobalScreen\MainMenu\IdentificationFactoryTest\testUnserializingCore(), and ILIAS\GlobalScreen\MainMenu\IdentificationFactoryTest\testUnserializingPlugin().
|
final |
Returns a IdentificationProvider for ILIAS-Plugins which takes care of the plugin_id for further identification where a provided GlobalScreen-element comes from (e.g.
to disable or delete all elements when a plugin is deleted or deactivated).
Definition at line 88 of file IdentificationFactory.php.
References ILIAS\GlobalScreen\Identification\IdentificationFactory\$map.
Referenced by ILIAS\GlobalScreen\MainMenu\IdentificationFactoryTest\testUnserializingPlugin().
|
final |
Returns a IdentificationProvider for core tools, only a Provider is needed.
Definition at line 77 of file IdentificationFactory.php.
References ILIAS\GlobalScreen\Identification\IdentificationFactory\$map.
|
protected |
|
protected |
Definition at line 49 of file IdentificationFactory.php.
Referenced by ILIAS\GlobalScreen\Identification\IdentificationFactory\__construct().
|
protected |
Definition at line 50 of file IdentificationFactory.php.