32 $this->component_factory =
$DIC[
"component.factory"];
49 }
catch (InvalidArgumentException
$e) {
60 return $pl->txt($lang_var);
70 $this->plugin = $this->component_factory->getPlugin($this->getType());
75 final public function txt(
string $a_var): string
77 return $this->getPlugin()->txt($a_var);
86 return $this->plugin->getParentTypes();
97 public static function langExitsById(
string $pluginId,
string $langVar): bool
102 $pl = self::getPluginObjectByType($pluginId);
103 $pl->loadLanguageModule();
105 return $lng->exists($pl->getPrefix() .
"_" . $langVar);
110 return $this->getPlugin()->getPrefix();
static getLogger(string $a_component_id)
Get component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getParentTypes()
returns a list of all repository object types which can be a parent of this type.
static getPluginObjectByType(string $type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin.
static langExitsById(string $pluginId, string $langVar)
Is searched lang var available in plugin lang files.
static lookupTxtById(string $plugin_id, string $lang_var)
getPlugin()
Get plugin object.
ilComponentFactory $component_factory
__construct(int $a_ref_id=0)
getPlugin(string $id)
Get the plugin for the given id.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc