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

assessment/classes/class.ilObjQuestionPoolListGUI.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2001 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 
00036 include_once "classes/class.ilObjectListGUI.php";
00037 include_once "./assessment/classes/inc.AssessmentConstants.php";
00038 
00039 class ilObjQuestionPoolListGUI extends ilObjectListGUI
00040 {
00045         function ilObjQuestionPoolListGUI()
00046         {
00047                 $this->ilObjectListGUI();
00048         }
00049 
00053         function init()
00054         {
00055                 $this->delete_enabled = true;
00056                 $this->cut_enabled = true;
00057                 $this->subscribe_enabled = true;
00058                 $this->link_enabled = false;
00059                 $this->payment_enabled = false;
00060                 $this->type = "qpl";
00061                 $this->gui_class_name = "ilobjquestionpoolgui";
00062 
00063                 // general commands array
00064                 include_once "./assessment/classes/class.ilObjQuestionPoolAccess.php";
00065                 $this->commands = ilObjQuestionPoolAccess::_getCommands();
00066         }
00067 
00068 
00077         function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
00078         {
00079                 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
00080         }
00081 
00082 
00090         function getCommandFrame($a_cmd)
00091         {
00092                 switch($a_cmd)
00093                 {
00094                         case "":
00095                         case "questions":
00096                                 include_once "./classes/class.ilFrameTargetInfo.php";
00097                                 $frame = ilFrameTargetInfo::_getFrame("MainContent");
00098                                 break;
00099 
00100                         default:
00101                 }
00102 
00103                 return $frame;
00104         }
00105 
00106 
00107 
00116         function getProperties()
00117         {
00118                 global $lng, $ilUser;
00119 
00120                 $props = array();
00121 
00122                 include_once "./assessment/classes/class.ilObjQuestionPool.php";
00123                 if (!ilObjQuestionPool::_lookupOnline($this->obj_id))
00124                 {
00125                         $props[] = array("alert" => true, "property" => $lng->txt("status"),
00126                                 "value" => $lng->txt("offline"));
00127                 }
00128                 return $props;
00129         }
00130 
00131 
00139         function getCommandLink($a_cmd)
00140         {
00141                 // separate method for this line
00142                 //$cmd_link = "assessment/questionpool.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
00143                 $cmd_link = "ilias.php?baseClass=ilObjQuestionPoolGUI&amp;ref_id=".$this->ref_id."&amp;cmd=$a_cmd";
00144 
00145                 return $cmd_link;
00146         }
00147 
00148 
00149 
00150 } // END class.ilObjTestListGUI
00151 ?>

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