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