19declare(strict_types=1);
36 $this->
lng = $DIC->language();
43 public function init(): void
45 $this->static_link_enabled =
true;
46 $this->delete_enabled =
true;
47 $this->cut_enabled =
true;
48 $this->info_screen_enabled =
true;
49 $this->copy_enabled =
false;
50 $this->subscribe_enabled =
false;
51 $this->link_enabled =
false;
54 $this->gui_class_name =
"ilobjorgunitgui";
79 if ($this->std_cmd_only) {
82 $cmd_link = $this->
ctrl->getLinkTargetByClass([ilObjOrgUnitGUI::class, ilInfoScreenGUI::class],
"showSummary");
87 $this->
lng->txt(
"info_short"),
95 $this->
ctrl->setParameterByClass(
"ilobjorgunitgui",
"ref_id", $this->ref_id);
97 return $this->
ctrl->getLinkTargetByClass(
"ilobjorgunitgui", $a_cmd);
106 if (isset($icons_cache[$this->obj_id])) {
111 return ilObject::getIconForReference(
static _getCommands()
get commands this method returns an array of all possible commands/permission combinations example: $...
Class ilObjOrgUnitListGUI.
insertCommonSocialCommands(bool $a_header_actions=false)
no social commands needed in orgunits.
insertInfoScreenCommand()
insert info screen command
insertTimingsCommand()
no timing commands needed in orgunits.
getTypeIcon()
Get object type specific type icon.
getCommandLink(string $a_cmd)
static getIconsCache()
Returns an array that maps from OrgUnit object IDs to its icon defined by the assigned OrgUnit type.
getIconImageType()
Returns the icon image type.
getCommandFrame(string $cmd)
Get command target frame.
insertCommand(string $href, string $text, string $frame='', string $img='', string $cmd='', string $onclick='')
insert command button
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc