20 declare(strict_types=1);
28 protected \ilDBInterface
$db;
46 if (!isset($this->plugins[$id])) {
47 $plugin_info = $this->component_repository->getPluginById($id);
48 $class_name = $plugin_info->getClassName();
49 $plugin =
new $class_name($this->db, $this->component_repository, $id);
53 return $this->plugins[
$id];
58 $ps = $this->component_repository->getPluginSlotById($slot_id)->getActivePlugins();
__construct(\ilComponentRepositoryWrite $component_repository, \ilDBInterface $db)
Writeable part of repository interface to ilComponentDataDB.
ilComponentRepositoryWrite $component_repository
getPlugin(string $id)
Get the plugin for the given id.
getActivePluginsInSlot(string $slot_id)
Get the active plugins for the given slot.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins