ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
setParameterByClass(string $a_class, string $a_parameter, $a_value)
Sets a parameter for the given GUI class and appends the given value as well.
getCommandLink(string $cmd)
Get command link url.
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilCtrlInterface $ctrl
Class ilObjWorkspaceRootFolderListGUI.