ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilObjGlossaryListGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once "Services/Object/classes/class.ilObjectListGUI.php";
6
16{
17
23 function init()
24 {
25 $this->static_link_enabled = true;
26 $this->delete_enabled = true;
27 $this->cut_enabled = true;
28 $this->copy_enabled = true;
29 $this->subscribe_enabled = true;
30 $this->link_enabled = true;
31 $this->info_screen_enabled = true;
32 $this->type = "glo";
33 $this->gui_class_name = "ilobjglossarygui";
34
35 // general commands array
36 include_once("./Modules/Glossary/classes/class.ilObjGlossaryAccess.php");
37 $this->commands = ilObjGlossaryAccess::_getCommands();
38 }
39
49 function getCommandLink($a_cmd)
50 {
51 switch($a_cmd)
52 {
53 case "view":
54 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$this->ref_id;
55 break;
56
57 case "edit":
58 $cmd_link = "ilias.php?baseClass=ilGlossaryEditorGUI&amp;ref_id=".$this->ref_id;
59 break;
60
61 case "properties":
62 $this->ctrl->setParameterByClass("ilobjglossarygui", "ref_id", $this->ref_id);
63 $cmd_link = $this->ctrl->getLinkTargetByClass(array("ilglossaryeditorgui", "ilobjglossarygui"), $a_cmd);
64 break;
65
66 case "infoScreen":
67 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;cmd=infoScreen&amp;ref_id=".$this->ref_id;
68 break;
69
70 default:
71 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
72 $cmd_link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
73 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
74 break;
75 }
76
77 return $cmd_link;
78 }
79
87 function getCommandFrame($a_cmd)
88 {
89 global $ilias;
90
91 switch($a_cmd)
92 {
93 case "view":
94 case "edit":
95 case "properties":
96 $frame = ilFrameTargetInfo::_getFrame("MainContent");
97 break;
98
99 default:
100 $frame = "";
101 break;
102 }
103
104 return $frame;
105 }
106
107
116 function getProperties()
117 {
118 global $lng, $rbacsystem;
119
120 $props = array();
121
122 include_once("./Modules/Glossary/classes/class.ilObjGlossaryAccess.php");
123
124 if (!ilObjGlossaryAccess::_lookupOnline($this->obj_id))
125 {
126 $props[] = array("alert" => true, "property" => $lng->txt("status"),
127 "value" => $lng->txt("offline"));
128 }
129 return $props;
130 }
131
132
133} // END class.ilObjCategoryGUI
134?>
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static _getFrame($a_class, $a_type='')
Get content frame name.
static _getCommands()
get commands
static _lookupOnline($a_id)
check wether learning module is online
Class ilObjGlossaryListGUI.
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Overwrite this method, if link target is not build by ctrl class (e.g.
getProperties()
Get item properties.
Class ilObjectListGUI.
global $lng
Definition: privfeed.php:17