ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 }
static _getImagePath( $a_ctype, $a_cname, $a_slot_id, $a_pname, $a_img)
Get image path.
Abstract parent class for all repository object plugin classes.
$a_type
Definition: workflow.php:92
if($format !==null) $name
Definition: metadata.php:146
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
const IL_COMP_MODULE
Create styles array
The data for the language used.
showInTree()
return true iff this item should be displayed in the tree.
slotInit()
Object initialization done by slot.
Class ilOrgUnitExtensionPlugin.