ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
PluginIdentificationProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
33{
41 public function __construct(
42 Provider $provider,
43 protected string $plugin_id,
44 SerializerInterface $serializer,
46 ) {
47 parent::__construct($provider, $serializer, $map);
48 }
49
53 public function identifier(string $identifier_string): 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 }
70}
__construct(Provider $provider, protected string $plugin_id, SerializerInterface $serializer, IdentificationMap $map)
PluginIdentificationProvider constructor.
identifier(string $identifier_string)
IdentificationInterface use this CoreIdentification to put into your GlobalScreen-elements.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc