ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilComponentRepository $component_repository) | |
isActive ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Checks whether plugin is active (include version checks) More... | |
Protected Member Functions | |
getPluginInfo ($a_ctype, $a_cname, $a_slot_id, $a_pname) | |
Protected Attributes | |
ilComponentRepository | $component_repository |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Administration class for plugins. Handles basic data from plugin.php files.
This class currently needs refactoring. There are a lot of methods which are related to some specific slots.
Definition at line 31 of file class.ilPluginAdmin.php.
ilPluginAdmin::__construct | ( | ilComponentRepository | $component_repository | ) |
Definition at line 35 of file class.ilPluginAdmin.php.
References $component_repository.
|
protected |
Definition at line 40 of file class.ilPluginAdmin.php.
Referenced by isActive().
ilPluginAdmin::isActive | ( | $a_ctype, | |
$a_cname, | |||
$a_slot_id, | |||
$a_pname | |||
) |
Checks whether plugin is active (include version checks)
ATTENTION: If one tries to remove this, the task doesn't look very hard initially. grep -r "isActive([^)]*,.*)" Modules/
(or in Services) only reveals a handful of locations that actually use this function. But: If you attempt to remove these locations, you run into a dependency hell in the T&A. The T&A uses dependency injection, but not container. If you add ilComponentRepository as dependency, you need to inject it ("courier anti pattern") in the classes above. This is super cumbersome and I started to loose track soon. This should be removed, but currently my concentration is not enough to do so.
string | $a_ctype | Component Type |
string | $a_cname | Component Name |
string | $a_slot_id | Slot ID |
string | $a_pname | Plugin Name |
Definition at line 76 of file class.ilPluginAdmin.php.
References Vendor\Package\$e, and getPluginInfo().
|
protected |
Definition at line 33 of file class.ilPluginAdmin.php.
Referenced by __construct().