ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjGlossaryListGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 public function init(): void
27 {
28 $this->static_link_enabled = true;
29 $this->delete_enabled = true;
30 $this->cut_enabled = true;
31 $this->copy_enabled = true;
32 $this->subscribe_enabled = true;
33 $this->link_enabled = true;
34 $this->info_screen_enabled = true;
35 $this->type = "glo";
36 $this->gui_class_name = "ilobjglossarygui";
37
38 // general commands array
39 $this->commands = ilObjGlossaryAccess::_getCommands();
40 }
41
42 public function getCommandLink(string $cmd): string
43 {
44 switch ($cmd) {
45 case "view":
46 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=" . $this->ref_id;
47 break;
48
49 case "edit":
50 $cmd_link = "ilias.php?baseClass=ilGlossaryEditorGUI&amp;ref_id=" . $this->ref_id;
51 break;
52
53 case "properties":
54 $this->ctrl->setParameterByClass("ilobjglossarygui", "ref_id", $this->ref_id);
55 $cmd_link = $this->ctrl->getLinkTargetByClass(array("ilglossaryeditorgui", "ilobjglossarygui"), $cmd);
56 break;
57
58 case "infoScreen":
59 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;cmd=infoScreen&amp;ref_id=" . $this->ref_id;
60 break;
61
62 default:
63 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
64 $cmd_link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", $cmd);
65 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->requested_ref_id);
66 break;
67 }
68
69 return $cmd_link;
70 }
71}
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.