Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00035 include_once "classes/class.ilObjectListGUI.php";
00036
00037 class ilObjGlossaryListGUI extends ilObjectListGUI
00038 {
00043 function ilObjGlossaryListGUI()
00044 {
00045 $this->ilObjectListGUI();
00046 }
00047
00053 function init()
00054 {
00055 $this->delete_enabled = true;
00056 $this->cut_enabled = true;
00057 $this->subscribe_enabled = true;
00058 $this->link_enabled = true;
00059 $this->payment_enabled = false;
00060 $this->info_screen_enabled = true;
00061 $this->type = "glo";
00062 $this->gui_class_name = "ilobjglossarygui";
00063
00064
00065 include_once('class.ilObjGlossaryAccess.php');
00066 $this->commands = ilObjGlossaryAccess::_getCommands();
00067 }
00068
00078 function getCommandLink($a_cmd)
00079 {
00080 switch($a_cmd)
00081 {
00082 case "view":
00083 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=".$this->ref_id;
00084 break;
00085
00086 case "edit":
00087 $cmd_link = "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$this->ref_id;
00088 break;
00089
00090 case "infoScreen":
00091 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&cmd=infoScreen&ref_id=".$this->ref_id;
00092 break;
00093
00094 default:
00095 $cmd_link = "repository.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
00096 break;
00097 }
00098
00099 return $cmd_link;
00100 }
00101
00109 function getCommandFrame($a_cmd)
00110 {
00111 global $ilias;
00112
00113 switch($a_cmd)
00114 {
00115 case "view":
00116 case "edit":
00117 $frame = ilFrameTargetInfo::_getFrame("MainContent");
00118 break;
00119
00120 default:
00121 $frame = "";
00122 break;
00123 }
00124
00125 return $frame;
00126 }
00127
00128
00137 function getProperties()
00138 {
00139 global $lng, $rbacsystem;
00140
00141 $props = array();
00142
00143 include_once("content/classes/class.ilObjGlossaryAccess.php");
00144
00145 if (!ilObjGlossaryAccess::_lookupOnline($this->obj_id))
00146 {
00147 $props[] = array("alert" => true, "property" => $lng->txt("status"),
00148 "value" => $lng->txt("offline"));
00149 }
00150 return $props;
00151 }
00152
00153
00154 }
00155 ?>