ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Stores current objective, questions and max points. More...
Public Member Functions | |
__construct ($a_crs_id, $a_user_id, $a_test_id, $a_objective_id) | |
getContainerId () | |
getUserId () | |
getTestId () | |
getObjectiveId () | |
getMaxPoints () | |
setMaxPoints ($a_points) | |
getQuestions () | |
clearQuestions () | |
addQuestion ($a_id) | |
questionExists ($a_question_id) | |
setQuestionResult ($a_qst_id, $a_points) | |
getResult () | |
Get result for objective run. More... | |
delete () | |
Delete all entries type $ilDB. More... | |
create () | |
update () | |
read () | |
type $ilDB More... | |
Static Public Member Functions | |
static | lookupRunExistsForObjective ($a_test_id, $a_objective_id, $a_user_id) |
type $ilDB More... | |
static | deleteRuns ($a_container_id, $a_user_id) |
Delete runs type $ilDB. More... | |
static | deleteRun ($a_container_id, $a_user_id, $a_test_id) |
static | lookupObjectives ($a_container_id, $a_user_id, $a_test_id) |
static | getRun ($a_container_id, $a_user_id, $a_test_id) |
Protected Attributes | |
$container_id = 0 | |
$user_id = 0 | |
$test_id = 0 | |
$objective_id = 0 | |
$max_points = 0 | |
$questions = array() | |
Stores current objective, questions and max points.
Definition at line 10 of file class.ilLOTestRun.php.
ilLOTestRun::__construct | ( | $a_crs_id, | |
$a_user_id, | |||
$a_test_id, | |||
$a_objective_id | |||
) |
Definition at line 21 of file class.ilLOTestRun.php.
References read().
ilLOTestRun::addQuestion | ( | $a_id | ) |
Definition at line 164 of file class.ilLOTestRun.php.
ilLOTestRun::clearQuestions | ( | ) |
ilLOTestRun::create | ( | ) |
Definition at line 226 of file class.ilLOTestRun.php.
References $ilDB, $query, getContainerId(), getMaxPoints(), getObjectiveId(), getQuestions(), getTestId(), and getUserId().
Referenced by ilLOTestQuestionAdapter\notifyTestStart().
ilLOTestRun::delete | ( | ) |
Delete all entries type $ilDB.
Definition at line 214 of file class.ilLOTestRun.php.
References $ilDB, $query, getContainerId(), getObjectiveId(), getTestId(), and getUserId().
|
static |
Definition at line 73 of file class.ilLOTestRun.php.
Referenced by ilLOTestQuestionAdapter\notifyTestStart().
|
static |
Delete runs type $ilDB.
type | $a_container_id | |
type | $a_user_id |
Definition at line 62 of file class.ilLOTestRun.php.
Referenced by ilObjCourseGUI\resetObject().
ilLOTestRun::getContainerId | ( | ) |
Definition at line 124 of file class.ilLOTestRun.php.
References $container_id.
Referenced by create(), delete(), and read().
ilLOTestRun::getMaxPoints | ( | ) |
Definition at line 144 of file class.ilLOTestRun.php.
References $max_points.
Referenced by create(), getResult(), and update().
ilLOTestRun::getObjectiveId | ( | ) |
Definition at line 139 of file class.ilLOTestRun.php.
References $objective_id.
Referenced by create(), delete(), ilTestResultHeaderLabelBuilder\getObjectiveTitle(), read(), and update().
ilLOTestRun::getQuestions | ( | ) |
Definition at line 154 of file class.ilLOTestRun.php.
References $questions, and array.
Referenced by create(), and update().
ilLOTestRun::getResult | ( | ) |
Get result for objective run.
Definition at line 189 of file class.ilLOTestRun.php.
References array, and getMaxPoints().
|
static |
Definition at line 106 of file class.ilLOTestRun.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilTestResultHeaderLabelBuilder\initObjectives(), and ilLOTestQuestionAdapter\initTestRun().
ilLOTestRun::getTestId | ( | ) |
ilLOTestRun::getUserId | ( | ) |
|
static |
Definition at line 84 of file class.ilLOTestRun.php.
References $GLOBALS, $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOUtils\hasActiveRun().
|
static |
type $ilDB
type | $a_test_obj_id | |
type | $a_objective_id | |
type | $a_user_id |
Definition at line 39 of file class.ilLOTestRun.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilContainerObjectiveGUI\updateResult().
ilLOTestRun::questionExists | ( | $a_question_id | ) |
ilLOTestRun::read | ( | ) |
type $ilDB
Definition at line 261 of file class.ilLOTestRun.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getContainerId(), getObjectiveId(), getTestId(), and getUserId().
Referenced by __construct().
ilLOTestRun::setMaxPoints | ( | $a_points | ) |
Definition at line 149 of file class.ilLOTestRun.php.
ilLOTestRun::setQuestionResult | ( | $a_qst_id, | |
$a_points | |||
) |
Definition at line 174 of file class.ilLOTestRun.php.
References $GLOBALS.
ilLOTestRun::update | ( | ) |
Definition at line 243 of file class.ilLOTestRun.php.
References $ilDB, $query, getMaxPoints(), getObjectiveId(), getQuestions(), getTestId(), and getUserId().
|
protected |
Definition at line 12 of file class.ilLOTestRun.php.
Referenced by getContainerId().
|
protected |
Definition at line 17 of file class.ilLOTestRun.php.
Referenced by getMaxPoints().
|
protected |
Definition at line 15 of file class.ilLOTestRun.php.
Referenced by getObjectiveId().
|
protected |
Definition at line 18 of file class.ilLOTestRun.php.
Referenced by getQuestions().
|
protected |
Definition at line 14 of file class.ilLOTestRun.php.
Referenced by getTestId().
|
protected |
Definition at line 13 of file class.ilLOTestRun.php.
Referenced by getUserId().