ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilOrgUnitExtensionPlugin.php
Go to the documentation of this file.
1<?php
2
9{
10
16 final public function getComponentType()
17 {
18 return IL_COMP_MODULE;
19 }
20
21
27 final public function getComponentName()
28 {
29 return 'OrgUnit';
30 }
31
32
38 final public function getSlot()
39 {
40 return 'OrgUnitExtension';
41 }
42
43
49 final public function getSlotId()
50 {
51 return 'orguext';
52 }
53
54
58 final protected function slotInit()
59 {
60 // nothing to do here
61 }
62
63
67 public function getParentTypes()
68 {
69 $par_types = array("orgu");
70
71 return $par_types;
72 }
73
74
81 public static function _getIcon($a_type, $a_size)
82 {
83 return ilPlugin::_getImagePath(IL_COMP_MODULE, "OrgUnit", "orguext", ilPlugin::lookupNameForId(IL_COMP_MODULE, "OrgUnit", "orguext", $a_type), "icon_"
84 . $a_type
85 . ".svg");
86 }
87
88
94 public static function _getName($a_id)
95 {
96 $name = ilPlugin::lookupNameForId(IL_COMP_MODULE, "Repository", "orguext", $a_id);
97 if ($name != "") {
98 return $name;
99 }
100 }
101
102
108 public function showInTree()
109 {
110 return false;
111 }
112}
An exception for terminatinating execution or to throw for unit testing.
const IL_COMP_MODULE
Class ilOrgUnitExtensionPlugin.
slotInit()
Object initialization done by slot.
showInTree()
return true iff this item should be displayed in the tree.
static lookupNameForId(string $a_ctype, string $a_cname, string $a_slot_id, string $a_plugin_id)
static _getImagePath(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname, string $a_img)
Abstract parent class for all repository object plugin classes.
if($format !==null) $name
Definition: metadata.php:230