ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilOrgUnitExtensionPlugin.php
Go to the documentation of this file.
1<?php
2
3require_once("./Services/Component/classes/class.ilPlugin.php");
4require_once("Services/Repository/classes/class.ilRepositoryObjectPlugin.php");
5
12
18 public final function getComponentType() {
19 return IL_COMP_MODULE;
20 }
21
22
28 public final function getComponentName() {
29 return 'OrgUnit';
30 }
31
32
38 public final function getSlot() {
39 return 'OrgUnitExtension';
40 }
41
42
48 public final function getSlotId() {
49 return 'orguext';
50 }
51
52
56 protected final function slotInit() {
57 // nothing to do here
58 }
59
60
64 public function getParentTypes() {
65 $par_types = array( "orgu" );
66
67 return $par_types;
68 }
69
70
76 public static function _getIcon($a_type, $a_size) {
77 return ilPlugin::_getImagePath(IL_COMP_MODULE, "OrgUnit", "orguext", ilPlugin::lookupNameForId(IL_COMP_MODULE, "OrgUnit", "orguext", $a_type), "icon_"
78 . $a_type
79 . ".svg");
80 }
81
82
87 static function _getName($a_id) {
88 $name = ilPlugin::lookupNameForId(IL_COMP_MODULE, "Repository", "orguext", $a_id);
89 if ($name != "") {
90 return $name;
91 }
92 }
93
94
100 public function showInTree() {
101 return false;
102 }
103}
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 _getImagePath($a_ctype, $a_cname, $a_slot_id, $a_pname, $a_img)
Get image path.
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
Abstract parent class for all repository object plugin classes.
$a_type
Definition: workflow.php:93