ILIAS  release_8 Revision v8.24
class.ilObjRootFolderListGUI.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
19
26{
28
29 public function __construct()
30 {
32 global $DIC;
33
35
36 $this->root_request = $DIC
37 ->rootFolder()
38 ->internal()
39 ->gui()
40 ->standardRequest();
41 }
42
43 public function init(): void
44 {
45 $this->copy_enabled = false;
46 $this->delete_enabled = true;
47 $this->cut_enabled = true;
48 $this->subscribe_enabled = true;
49 $this->link_enabled = false;
50 $this->type = "root";
51 $this->gui_class_name = "ilobjrootfoldergui";
52
53 // general commands array
54 $this->commands = ilObjRootFolderAccess::_getCommands();
55 }
56
57 public function getCommandLink(string $cmd): string
58 {
59 global $ilCtrl;
60
61 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
62 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $cmd);
63 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->root_request->getRefId());
64
65 return $cmd_link;
66 }
67}
Class ilObjRootFolderListGUI.
getCommandLink(string $cmd)
Get command link url.
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc