ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilOrgUnitExtensionPlugin.php
Go to the documentation of this file.
1<?php
2
24{
25 public function getParentTypes(): array
26 {
27 return ['orgu'];
28 }
29
30 public static function _getIcon(string $a_type): string
31 {
32 global $DIC;
33 $componentRepositoryObject = $DIC["component.repository"];
34
37 "OrgUnit",
38 "orguext",
39 $componentRepositoryObject->getPluginById($a_type)->getName(),
40 "icon_" . $a_type . ".svg"
41 );
42 }
43
44 public static function _getName(string $a_id): string
45 {
46 global $DIC;
47 $component_repository = $DIC["component.repository"];
48 return $component_repository->getPluginById($a_id)->getName();
49 }
50
51 public function showInTree(): bool
52 {
53 return false;
54 }
55}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilComponentRepositoryWrite $component_repository
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getImagePath(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname, string $a_img)
Only very little classes seem to care about this:
getPluginById(string $id)
Get a plugin by id.
global $DIC
Definition: shib_login.php:26