• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

content/classes/class.ilObjGlossaryListGUI.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2006 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
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                 // general commands array
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&amp;ref_id=".$this->ref_id;
00084                                 break;
00085 
00086                         case "edit":
00087                                 $cmd_link = "ilias.php?baseClass=ilGlossaryEditorGUI&amp;ref_id=".$this->ref_id;
00088                                 break;
00089 
00090                         case "infoScreen":
00091                                 $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&amp;cmd=infoScreen&amp;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 } // END class.ilObjCategoryGUI
00155 ?>

Generated on Fri Dec 13 2013 13:52:09 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1