ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjWorkspaceRootFolderListGUI.php
Go to the documentation of this file.
1<?php
2
20
27{
29
30 public function init(): void
31 {
32 global $DIC;
33
34 $this->copy_enabled = false;
35 $this->delete_enabled = false;
36 $this->cut_enabled = false;
37 $this->subscribe_enabled = false;
38 $this->link_enabled = false;
39 $this->type = "root";
40 $this->gui_class_name = "ilobjworkspacerootfoldergui";
41 $this->request = new StandardGUIRequest(
42 $DIC->http(),
43 $DIC->refinery()
44 );
45
46 // general commands array
48 }
49
53 public function getCommandLink(string $cmd): string
54 {
55 $ilCtrl = $this->ctrl;
56
57 // does this make any sense!?
58 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
59 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $cmd);
60 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->request->getRefId());
61
62 return $cmd_link;
63 }
64}
Class ilObjWorkspaceRootFolderListGUI.
getCommandLink(string $cmd)
Get command link url.
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.
global $DIC
Definition: shib_login.php:26