ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilOrgUnitExtensionPlugin.php
Go to the documentation of this file.
1<?php
2
3
10{
11
17 final public function getComponentType()
18 {
19 return IL_COMP_MODULE;
20 }
21
22
28 final public function getComponentName()
29 {
30 return 'OrgUnit';
31 }
32
33
39 final public function getSlot()
40 {
41 return 'OrgUnitExtension';
42 }
43
44
50 final public function getSlotId()
51 {
52 return 'orguext';
53 }
54
55
59 final protected function slotInit()
60 {
61 // nothing to do here
62 }
63
64
68 public function getParentTypes()
69 {
70 $par_types = array( "orgu" );
71
72 return $par_types;
73 }
74
75
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
93 public static function _getName($a_id)
94 {
95 $name = ilPlugin::lookupNameForId(IL_COMP_MODULE, "Repository", "orguext", $a_id);
96 if ($name != "") {
97 return $name;
98 }
99 }
100
101
107 public function showInTree()
108 {
109 return false;
110 }
111}
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.
$a_type
Definition: workflow.php:92