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
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
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
00142
00143 $cmd_link = "ilias.php?baseClass=ilObjQuestionPoolGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
00144
00145 return $cmd_link;
00146 }
00147
00148
00149
00150 }
00151 ?>