32 $this->component_factory = $DIC[
"component.factory"];
46 $component_factory = $DIC[
"component.factory"];
48 return $component_factory->
getPlugin($type);
59 $pl = self::getPluginObjectByType($plugin_id);
60 return $pl->txt($lang_var);
70 $this->plugin = $this->component_factory->getPlugin($this->
getType());
75 final public function txt(
string $a_var): string
86 return $this->plugin->getParentTypes();
97 public static function langExitsById(
string $pluginId,
string $langVar): bool
100 $lng = $DIC->language();
102 $pl = self::getPluginObjectByType($pluginId);
103 $pl->loadLanguageModule();
105 return $lng->
exists($pl->getPrefix() .
"_" . $langVar);
exists(string $a_topic)
Check if language entry exists.
getParentTypes()
returns a list of all repository object types which can be a parent of this type. ...
static getLogger(string $a_component_id)
Get component logger.
__construct(int $a_ref_id=0)
getPlugin(string $id)
Get the plugin for the given id.
ilComponentFactory $component_factory
getPlugin()
Get plugin object.
static lookupTxtById(string $plugin_id, string $lang_var)
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.
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...