ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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, protected 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 (protected Provider $provider, protected SerializerInterface $serializer, protected IdentificationMap $map)
 CoreIdentificationProvider constructor. More...
 
 fromSerializedString (string $serialized_string)
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\GlobalScreen\Identification\AbstractIdentificationProvider
string $class_name = ''
 
- 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,
protected string  $plugin_id,
SerializerInterface  $serializer,
IdentificationMap  $map 
)

PluginIdentificationProvider constructor.

Parameters
Provider$provider
string$plugin_id
SerializerInterface$serializer
IdentificationMap$map

Definition at line 41 of file PluginIdentificationProvider.php.

References ILIAS\GlobalScreen\Provider\__construct().

46  {
47  parent::__construct($provider, $serializer, $map);
48  }
$provider
Definition: ltitoken.php:80
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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 53 of file PluginIdentificationProvider.php.

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

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