16 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
17 include_once
"./Modules/Test/classes/inc.AssessmentConstants.php";
27 public function __construct($a_context = self::CONTEXT_REPOSITORY)
29 parent::__construct($a_context);
30 $this->info_screen_enabled =
true;
38 $this->static_link_enabled =
true;
39 $this->delete_enabled =
true;
40 $this->cut_enabled =
true;
41 $this->copy_enabled =
true;
42 $this->subscribe_enabled =
true;
43 $this->link_enabled =
true;
45 $this->gui_class_name =
"ilobjtestgui";
48 include_once
"./Modules/Test/classes/class.ilObjTestAccess.php";
61 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
63 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
82 include_once
"./Services/UICore/classes/class.ilFrameTargetInfo.php";
107 include_once
"./Modules/Test/classes/class.ilObjTestAccess.php";
111 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
112 "value" => $lng->txt(
"offline"));
118 if ($onlineaccess !==
true)
120 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
121 "value" => $onlineaccess);
139 $a_cmd = explode(
'::', $a_cmd);
141 if( count($a_cmd) == 2 )
143 $cmd_link = $ilCtrl->getLinkTargetByClass(
array(
'ilRepositoryGUI',
'ilObjTestGUI', $a_cmd[0]), $a_cmd[1]);
147 $cmd_link = $ilCtrl->getLinkTargetByClass(
'ilObjTestGUI', $a_cmd[0]);
150 $params = array_merge(
array(
'ref_id' => $this->ref_id), $this->command_link_params);
152 foreach(
$params as $param => $value)
162 $commands = parent::getCommands();
179 require_once
'Modules/Test/classes/class.ilObjTestAccess.php';
192 require_once
'Modules/Course/classes/Objectives/class.ilLOSettings.php';
198 foreach($commands as $key => $command)
200 if($command[
'cmd'] ==
'userResultsGateway')
202 unset($commands[$key]);
232 $this->command_link_params = $a_param;
238 include_once
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
241 $cmd_link = $a_default_link;
248 $this->ctrl->setParameterByClass(
"ilrepositorygui",
'ref_id',
$ref_id);
249 $this->ctrl->setParameterByClass(
"ilrepositorygui",
'tid', $this->ref_id);
250 $cmd_link = $this->ctrl->getLinkTargetByClass(
"ilrepositorygui",
'redirectLocToTest');
251 $this->ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
252 $this->ctrl->clearParametersByClass(
'ilrepositorygui');
254 return parent::modifyTitleLink($cmd_link);
modifyTitleLink($a_default_link)
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Get command link url.
static isObjectiveTest($a_trst_ref_id)
Check if test ref_id is used in an objective course.
static _isOnline($a_obj_id)
returns the objects's ONline status
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
static _getAllReferences($a_id)
get all reference ids of object
getProperties()
Get item properties.
__construct($a_context=self::CONTEXT_REPOSITORY)
constructor
static _lookupOnlineTestAccess($a_test_id, $a_user_id)
Checks if a user is allowd to run an online exam.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static visibleUserResultExists($testObjId, $userId)
addCommandLinkParameter($a_param)
add command link parameters
removeUserResultsCommand($commands)
Create styles array
The data for the language used.
handleUserResultsCommand($commands)
static _getCommands()
get commands
createDefaultCommand($a_command)
overwritten from base class for course objectives