ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilOrgUnitExtensionPlugin.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  public function getParentTypes(): array
27  {
28  return ['orgu'];
29  }
30 
31  public static function _getIcon(string $a_type): string
32  {
33  global $DIC;
34  $componentRepositoryObject = $DIC["component.repository"];
35 
38  "OrgUnit",
39  "orguext",
40  $componentRepositoryObject->getPluginById($a_type)->getName(),
41  "icon_" . $a_type . ".svg"
42  );
43  }
44 
45  public static function _getName(string $a_id): string
46  {
47  global $DIC;
48  $component_repository = $DIC["component.repository"];
49  return $component_repository->getPluginById($a_id)->getName();
50  }
51 
52  public function showInTree(): bool
53  {
54  return false;
55  }
56 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilComponentRepositoryWrite $component_repository
global $DIC
Definition: shib_login.php:25
getPluginById(string $id)
Get a plugin by id.
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:
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...