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 public 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);
81 include_once
"./Services/UICore/classes/class.ilFrameTargetInfo.php";
106 include_once
"./Modules/Test/classes/class.ilObjTestAccess.php";
109 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
110 "value" => $lng->txt(
"offline"));
116 if ($onlineaccess !==
true) {
117 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
118 "value" => $onlineaccess);
136 $a_cmd = explode(
'::', $a_cmd);
138 if (count($a_cmd) == 2) {
139 $cmd_link = $ilCtrl->getLinkTargetByClass(
array(
'ilRepositoryGUI',
'ilObjTestGUI', $a_cmd[0]), $a_cmd[1]);
141 $cmd_link = $ilCtrl->getLinkTargetByClass(
'ilObjTestGUI', $a_cmd[0]);
144 $params = array_merge(
array(
'ref_id' => $this->ref_id), $this->command_link_params);
146 foreach (
$params as $param => $value) {
155 $commands = parent::getCommands();
169 require_once
'Modules/Test/classes/class.ilObjTestAccess.php';
181 require_once
'Modules/Course/classes/Objectives/class.ilLOSettings.php';
187 foreach ($commands as
$key => $command) {
188 if ($command[
'cmd'] ==
'userResultsGateway') {
189 unset($commands[
$key]);
219 $this->command_link_params = $a_param;
225 include_once
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
228 $cmd_link = $a_default_link;
234 $this->ctrl->setParameterByClass(
"ilrepositorygui",
'ref_id',
$ref_id);
235 $this->ctrl->setParameterByClass(
"ilrepositorygui",
'tid', $this->ref_id);
236 $cmd_link = $this->ctrl->getLinkTargetByClass(
"ilrepositorygui",
'redirectLocToTest');
237 $this->ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
238 $this->ctrl->clearParametersByClass(
'ilrepositorygui');
240 return parent::modifyTitleLink($cmd_link);
modifyTitleLink($a_default_link)
getCommandFrame($a_cmd)
Get command target frame.
if(!array_key_exists('StateId', $_REQUEST)) $id
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