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";
107 $props = parent::getProperties();
111 if ($onlineaccess !==
true) {
112 $props[] = array(
"alert" =>
true,
"property" =>
$lng->txt(
"status"),
113 "value" => $onlineaccess);
132 $a_cmd = explode(
'::', $a_cmd);
134 if (count($a_cmd) == 2) {
135 $cmd_link =
$ilCtrl->getLinkTargetByClass(array(
'ilRepositoryGUI',
'ilObjTestGUI', $a_cmd[0]), $a_cmd[1]);
137 $cmd_link =
$ilCtrl->getLinkTargetByClass(
'ilObjTestGUI', $a_cmd[0]);
140 $params = array_merge(array(
'ref_id' => $this->ref_id), $this->command_link_params);
142 foreach (
$params as $param => $value) {
151 $commands = parent::getCommands();
166 require_once
'Modules/Test/classes/class.ilObjTestAccess.php';
178 require_once
'Modules/Course/classes/Objectives/class.ilLOSettings.php';
184 foreach ($commands as
$key => $command) {
185 if ($command[
'cmd'] ==
'userResultsGateway') {
186 unset($commands[
$key]);
216 $this->command_link_params = $a_param;
222 include_once
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
225 $cmd_link = $a_default_link;
231 $this->ctrl->setParameterByClass(
"ilrepositorygui",
'ref_id',
$ref_id);
232 $this->ctrl->setParameterByClass(
"ilrepositorygui",
'tid', $this->ref_id);
233 $cmd_link = $this->ctrl->getLinkTargetByClass(
"ilrepositorygui",
'redirectLocToTest');
234 $this->ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
235 $this->ctrl->clearParametersByClass(
'ilrepositorygui');
237 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.
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)
handleUserResultsCommand($commands)
static _getCommands()
get commands
createDefaultCommand($a_command)
overwritten from base class for course objectives