4 include_once(
"./Services/Object/classes/class.ilObject2.php");
5 require_once(
'./Services/Component/classes/class.ilPlugin.php');
32 parent::__construct($a_ref_id,
true);
45 if (!self::$plugin_by_type[
$type]) {
46 self::loadRepoPlugin($type);
49 return self::$plugin_by_type[
$type];
73 ilLoggerFactory::getLogger(
"obj")->log(
"Try to get repo plugin obj by type: $type_id. No such type exists for Repository and Org Unit pluginss.");
75 self::$plugin_by_type[$type_id] =
$plugin;
85 $pl = self::getRepoPluginObjectByType($plugin_id);
86 return $pl->txt($lang_var);
104 if (!is_object($this->plugin)) {
105 throw new ilPluginException(
"ilObjectPlugin: Could not instantiate plugin object for type " . $this->
getType() .
".");
114 final protected function txt($a_var)
125 return $this->plugin->getParentTypes();
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get plugin object.
static loadRepoPlugin($type_id)
getParentTypes()
returns a list of all repository object types which can be a parent of this type. ...
static lookupTxtById($plugin_id, $lang_var)
txt($a_var)
Wrapper for txt function.
__construct($a_ref_id=0)
Constructor.
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
static getRepoPluginObjectByType($type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin...
Create styles array
The data for the language used.
getPlugin()
Get plugin object.
Class ilObject2 This is an intermediate progress of ilObject class.
static getLogger($a_component_id)
Get component logger.