ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
PluginProviderHelper.php
Go to the documentation of this file.
1<?php
2
4
7use ilPlugin;
8
15{
16
20 protected $plugin;
24 protected $if;
25
26
30 final public function __construct(Container $dic, ilPlugin $plugin)
31 {
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}
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:18
__construct($a_client_id=0)
Constructor setup ILIAS global object @access public.
Abstract Class ilPlugin.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
trait PluginProviderHelper
Class PluginProviderHelper.
$dic
Definition: result.php:13