ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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{
22 {
23 $this->ilObjectListGUI();
24 }
25
31 function init()
32 {
33 $this->static_link_enabled = true;
34 $this->delete_enabled = true;
35 $this->cut_enabled = true;
36 $this->copy_enabled = true;
37 $this->subscribe_enabled = true;
38 $this->link_enabled = true;
39 $this->payment_enabled = true;
40 $this->info_screen_enabled = true;
41 $this->type = "glo";
42 $this->gui_class_name = "ilobjglossarygui";
43
44 // general commands array
45 include_once("./Modules/Glossary/classes/class.ilObjGlossaryAccess.php");
46 $this->commands = ilObjGlossaryAccess::_getCommands();
47 }
48
58 function getCommandLink($a_cmd)
59 {
60 switch($a_cmd)
61 {
62 case "view":
63 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$this->ref_id;
64 break;
65
66 case "edit":
67 $cmd_link = "ilias.php?baseClass=ilGlossaryEditorGUI&amp;ref_id=".$this->ref_id;
68 break;
69
70 case "properties":
71 $this->ctrl->setParameterByClass("ilobjglossarygui", "ref_id", $this->ref_id);
72 $cmd_link = $this->ctrl->getLinkTargetByClass(array("ilglossaryeditorgui", "ilobjglossarygui"), $a_cmd);
73 break;
74
75 case "infoScreen":
76 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;cmd=infoScreen&amp;ref_id=".$this->ref_id;
77 break;
78
79 default:
80 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
81 $cmd_link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
82 $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
83 break;
84 }
85
86 return $cmd_link;
87 }
88
96 function getCommandFrame($a_cmd)
97 {
98 global $ilias;
99
100 switch($a_cmd)
101 {
102 case "view":
103 case "edit":
104 case "properties":
105 $frame = ilFrameTargetInfo::_getFrame("MainContent");
106 break;
107
108 default:
109 $frame = "";
110 break;
111 }
112
113 return $frame;
114 }
115
116
125 function getProperties()
126 {
127 global $lng, $rbacsystem;
128
129 $props = array();
130
131 include_once("./Modules/Glossary/classes/class.ilObjGlossaryAccess.php");
132
133 if (!ilObjGlossaryAccess::_lookupOnline($this->obj_id))
134 {
135 $props[] = array("alert" => true, "property" => $lng->txt("status"),
136 "value" => $lng->txt("offline"));
137 }
138 return $props;
139 }
140
141
142} // END class.ilObjCategoryGUI
143?>
$_GET["client_id"]
static _getFrame($a_class, $a_type='')
Get content frame name.
_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.
ilObjectListGUI()
constructor
global $lng
Definition: privfeed.php:40