ILIAS  release_8 Revision v8.24
PluginProviderHelper.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
24use ilPlugin;
25
31{
32 protected ilPlugin $plugin;
33
37 final public function __construct(Container $dic, ilPlugin $plugin)
38 {
40 $this->plugin = $plugin;
41 $this->if = $this->globalScreen()->identification()->plugin($plugin->getId(), $this);
42 }
43
44 final public function getProviderNameForPresentation(): string
45 {
46 return $this->plugin->getPluginName();
47 }
48
49 final public function getPluginID(): string
50 {
51 return $this->plugin->getId();
52 }
53
54 final public function id(): PluginIdentificationProvider
55 {
56 return $this->if;
57 }
58}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
__construct()
Constructor setup ILIAS global object @access public.
Definition: class.ilias.php:62
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
trait PluginProviderHelper
Class PluginProviderHelper.
$dic
Definition: result.php:32