ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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

 $plugin_id = ""
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
 $map
 
 $provider
 
 $serializer
 
 $class_name = ''
 

Additional Inherited Members

- Static Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
static $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 40 of file PluginIdentificationProvider.php.

40  : IdentificationInterface
41  {
42  if (isset(self::$instances[$identifier_string])) {
43  return self::$instances[$identifier_string];
44  }
45 
46  $identification = new PluginIdentification($this->plugin_id, $identifier_string, $this->class_name, $this->serializer, $this->provider->getProviderNameForPresentation());
47  $this->map->addToMap($identification);
48 
49  return self::$instances[$identifier_string] = $identification;
50  }

Field Documentation

◆ $plugin_id

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

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