ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjItemGroupListGUI.php
Go to the documentation of this file.
1<?php
2
24{
25 protected bool $subitems_enabled;
26
27 public function __construct()
28 {
29 global $DIC;
30
31 $this->lng = $DIC->language();
32 $this->ctrl = $DIC->ctrl();
33 $lng = $DIC->language();
34
35 $lng->loadLanguageModule('itgr');
37 }
38
39 public function init(): void
40 {
41 $this->delete_enabled = true;
42 $this->cut_enabled = false;
43 $this->copy_enabled = false;
44 $this->subscribe_enabled = false;
45 $this->link_enabled = false;
46 $this->info_screen_enabled = false;
47 $this->subitems_enabled = true;
48 $this->type = "itgr";
49 $this->gui_class_name = "ilobjitemgroupgui";
50
51 // general commands array
52 $this->commands = ilObjItemGroupAccess::_getCommands();
53 }
54
55 public function enableSubscribe(bool $status): void
56 {
57 $this->subscribe_enabled = false;
58 }
59
64 public function enableInfoScreen(bool $info_screen): void
65 {
66 $this->info_screen_enabled = false;
67 }
68
69 public function getCommandLink(string $cmd): string
70 {
71 $ilCtrl = $this->ctrl;
72
73 // separate method for this line
74 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
75 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $cmd);
76 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->requested_ref_id);
77 return $cmd_link;
78 }
79
80 public function getProperties(): array
81 {
82 $props = array();
83 return $props;
84 }
85}
loadLanguageModule(string $a_module)
Load language module.
static _getCommands()
get commands
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getCommandLink(string $cmd)
Get command link url.
getProperties()
Get item properties.
enableInfoScreen(bool $info_screen)
Prevent enabling info necessary due to bug 11509.
ilCtrlInterface $ctrl
setParameterByClass(string $a_class, string $a_parameter, $a_value)
Sets a parameter for the given GUI class and appends the given value as well.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26