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 ilObjTestListGUI extends ilObjectListGUI
00040 {
00045 function ilObjTestListGUI()
00046 {
00047 $this->ilObjectListGUI();
00048 $this->info_screen_enabled = true;
00049 }
00050
00054 function init()
00055 {
00056 $this->delete_enabled = true;
00057 $this->cut_enabled = true;
00058 $this->subscribe_enabled = true;
00059 $this->link_enabled = true;
00060 $this->payment_enabled = true;
00061 $this->type = "tst";
00062 $this->gui_class_name = "ilobjtestgui";
00063
00064
00065 include_once "./assessment/classes/class.ilObjTestAccess.php";
00066 $this->commands = ilObjTestAccess::_getCommands();
00067 }
00068
00069
00078 function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
00079 {
00080 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
00081 }
00082
00083
00091 function getCommandFrame($a_cmd)
00092 {
00093 switch($a_cmd)
00094 {
00095 case "":
00096 case "infoScreen":
00097 case "eval_a":
00098 case "eval_stat":
00099 include_once "./classes/class.ilFrameTargetInfo.php";
00100 $frame = ilFrameTargetInfo::_getFrame("MainContent");
00101 break;
00102
00103 default:
00104 }
00105
00106 return $frame;
00107 }
00108
00109
00110
00119 function getProperties()
00120 {
00121 global $lng, $ilUser;
00122
00123 $props = array();
00124
00125 include_once "./assessment/classes/class.ilObjTestAccess.php";
00126 if (!ilObjTestAccess::_lookupCreationComplete($this->obj_id))
00127 {
00128 $props[] = array("alert" => true, "property" => $lng->txt("status"),
00129 "value" => $lng->txt("tst_warning_test_not_complete"));
00130 }
00131 $onlineaccess = ilObjTestAccess::_lookupOnlineTestAccess($this->obj_id, $ilUser->id);
00132 if ($onlineaccess !== true)
00133 {
00134 $props[] = array("alert" => true, "property" => $lng->txt("status"),
00135 "value" => $onlineaccess);
00136 }
00137
00138 return $props;
00139 }
00140
00141
00149 function getCommandLink($a_cmd)
00150 {
00151
00152
00153 $cmd_link = "ilias.php?baseClass=ilObjTestGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
00154
00155 return $cmd_link;
00156 }
00157
00158
00159
00160 }
00161 ?>