ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
PluginIdentificationProvider.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
21 
25 
32 {
33  protected string $plugin_id = "";
34 
42  public function __construct(
44  string $plugin_id,
47  ) {
48  parent::__construct($provider, $serializer, $map);
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)
this is a identifier which is only known to your component. The GlobalScreen services uses this strin...
__construct(Container $dic, ilPlugin $plugin)
__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...