ILIAS
Release_5_0_x_branch Revision 61816
|
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. | |
delete () | |
Delete all entries type $ilDB. | |
create () | |
update () | |
read () | |
type $ilDB |
Static Public Member Functions | |
static | lookupRunExistsForObjective ($a_test_id, $a_objective_id, $a_user_id) |
type $ilDB | |
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 147 of file class.ilLOTestRun.php.
ilLOTestRun::clearQuestions | ( | ) |
Definition at line 142 of file class.ilLOTestRun.php.
ilLOTestRun::create | ( | ) |
Definition at line 209 of file class.ilLOTestRun.php.
References $ilDB, $query, getContainerId(), getMaxPoints(), getObjectiveId(), getQuestions(), getTestId(), and getUserId().
Referenced by ilObjCourseGUI\redirectLocToTestObject().
ilLOTestRun::delete | ( | ) |
Delete all entries type $ilDB.
Definition at line 197 of file class.ilLOTestRun.php.
References $ilDB, $query, getContainerId(), getObjectiveId(), getTestId(), and getUserId().
|
static |
Definition at line 56 of file class.ilLOTestRun.php.
Referenced by ilObjCourseGUI\redirectLocToTestObject(), and ilObjCourseGUI\resetObject().
ilLOTestRun::getContainerId | ( | ) |
Definition at line 107 of file class.ilLOTestRun.php.
References $container_id.
Referenced by create(), delete(), and read().
ilLOTestRun::getMaxPoints | ( | ) |
Definition at line 127 of file class.ilLOTestRun.php.
References $max_points.
Referenced by create(), getResult(), and update().
ilLOTestRun::getObjectiveId | ( | ) |
Definition at line 122 of file class.ilLOTestRun.php.
References $objective_id.
Referenced by create(), delete(), read(), and update().
ilLOTestRun::getQuestions | ( | ) |
Definition at line 137 of file class.ilLOTestRun.php.
References $questions.
Referenced by create(), and update().
ilLOTestRun::getResult | ( | ) |
Get result for objective run.
Definition at line 172 of file class.ilLOTestRun.php.
References getMaxPoints().
|
static |
Definition at line 89 of file class.ilLOTestRun.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLOTestQuestionAdapter\initTestRun().
ilLOTestRun::getTestId | ( | ) |
ilLOTestRun::getUserId | ( | ) |
|
static |
Definition at line 67 of file class.ilLOTestRun.php.
References $GLOBALS, $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjCourseGUI\handleActivePass(), and 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 DB_FETCHMODE_OBJECT.
Referenced by ilContainerObjectiveGUI\updateResult().
ilLOTestRun::questionExists | ( | $a_question_id | ) |
Definition at line 152 of file class.ilLOTestRun.php.
ilLOTestRun::read | ( | ) |
type $ilDB
Definition at line 244 of file class.ilLOTestRun.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getContainerId(), getObjectiveId(), getTestId(), and getUserId().
Referenced by __construct().
ilLOTestRun::setMaxPoints | ( | $a_points | ) |
Definition at line 132 of file class.ilLOTestRun.php.
ilLOTestRun::setQuestionResult | ( | $a_qst_id, | |
$a_points | |||
) |
Definition at line 157 of file class.ilLOTestRun.php.
References $GLOBALS.
ilLOTestRun::update | ( | ) |
Definition at line 226 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().