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

Class PluginIdentificationProvider. More...

+ Inheritance diagram for ILIAS\GlobalScreen\Identification\PluginIdentificationProvider:
+ Collaboration diagram for ILIAS\GlobalScreen\Identification\PluginIdentificationProvider:

Public Member Functions

 __construct (Provider $provider, string $plugin_id, SerializerInterface $serializer, IdentificationMap $map)
 PluginIdentificationProvider constructor. More...
 
 identifier (string $identifier_string)
 
Parameters
string$identifier_stringthis is a identifier which is only known to your component. The GlobalScreen services uses this string together with e.g. the classname of your provider to stack items or to ask your provider for further infos. 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.
Returns
IdentificationInterface use this CoreIdentification to put into your GlobalScreen-elements.
More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
 __construct (Provider $provider, SerializerInterface $serializer, IdentificationMap $map)
 CoreIdentificationProvider constructor. More...
 
 fromSerializedString (string $serialized_string)
 

Protected Attributes

string $plugin_id = ""
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
IdentificationMap $map
 
Provider $provider
 
Serializer SerializerInterface $serializer
 
string $class_name = ''
 

Additional Inherited Members

- Static Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
static array $instances = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Identification\PluginIdentificationProvider::__construct ( Provider  $provider,
string  $plugin_id,
SerializerInterface  $serializer,
IdentificationMap  $map 
)

Member Function Documentation

◆ identifier()

ILIAS\GlobalScreen\Identification\PluginIdentificationProvider::identifier ( string  $identifier_string)

Parameters
string$identifier_stringthis is a identifier which is only known to your component. The GlobalScreen services uses this string together with e.g. the classname of your provider to stack items or to ask your provider for further infos. 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.
Returns
IdentificationInterface use this CoreIdentification to put into your GlobalScreen-elements.

Implements ILIAS\GlobalScreen\Identification\IdentificationProviderInterface.

Definition at line 55 of file PluginIdentificationProvider.php.

55  : IdentificationInterface
56  {
57  if (isset(self::$instances[$identifier_string])) {
58  return self::$instances[$identifier_string];
59  }
60 
61  $identification = new PluginIdentification(
62  $this->plugin_id,
63  $identifier_string,
64  $this->class_name,
65  $this->serializer,
66  $this->provider->getProviderNameForPresentation()
67  );
68  $this->map->addToMap($identification);
69 
70  return self::$instances[$identifier_string] = $identification;
71  }

Field Documentation

◆ $plugin_id

string ILIAS\GlobalScreen\Identification\PluginIdentificationProvider::$plugin_id = ""
protected

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