ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
PluginProviderHelper.php
Go to the documentation of this file.
1 <?php
2 
4 
7 use ilPlugin;
8 
15 {
16 
20  protected $plugin;
24  protected $if;
25 
26 
30  final public function __construct(Container $dic, ilPlugin $plugin)
31  {
32  parent::__construct($dic);
33  $this->plugin = $plugin;
34  $this->if = $this->globalScreen()->identification()->plugin($plugin->getId(), $this);
35  }
36 
37 
41  final public function getProviderNameForPresentation() : string
42  {
43  return $this->plugin->getPluginName();
44  }
45 
46 
50  final public function getPluginID() : string
51  {
52  return $this->plugin->getId();
53  }
54 
55 
59  final public function id() : PluginIdentificationProvider
60  {
61  return $this->if;
62  }
63 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:17
__construct(Container $dic, ilPlugin $plugin)
$dic
Definition: result.php:13
__construct($a_client_id=0)
Constructor setup ILIAS global object public.