ILIAS  release_8 Revision v8.24
PluginIdentificationProvider.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
25
32{
33 protected string $plugin_id = "";
34
42 public function __construct(
44 string $plugin_id,
47 ) {
49 $this->plugin_id = $plugin_id;
50 }
51
55 public function identifier(string $identifier_string): 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 }
72}
identifier(string $identifier_string)
IdentificationInterface use this CoreIdentification to put into your GlobalScreen-elements.
__construct(Provider $provider, string $plugin_id, SerializerInterface $serializer, IdentificationMap $map)
PluginIdentificationProvider constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc