ILIAS
Release_5_0_x_branch Revision 61816
|
class ilcourseobjective More...
Public Member Functions | |
ilCourseObjectiveResult ($a_usr_id) | |
getUserId () | |
getAccomplished ($a_crs_id) | |
_getAccomplished ($a_user_id, $a_crs_id) | |
getSuggested ($a_crs_id, $a_status=IL_OBJECTIVE_STATUS_FINAL) | |
_getSuggested ($a_user_id, $a_crs_id, $a_status=IL_OBJECTIVE_STATUS_FINAL) | |
reset ($a_course_id) | |
getStatus ($a_course_id) | |
hasAccomplishedObjective ($a_objective_id) | |
readStatus ($a_crs_id) | |
__deleteEntries ($a_objective_ids) | |
_updateObjectiveResult ($a_user_id, $a_active_id, $a_question_id) | |
_readAssignedObjectivesOfQuestion ($a_question_id) | |
_readAssignedObjectives ($a_all_objectives) | |
_updateObjectiveStatus ($a_user_id, $objectives) | |
__isFullfilled ($question_points, $objective_data) | |
__updatePassed ($a_user_id, $objective_ids) |
Static Public Member Functions | |
static | getSuggestedQuestions ($a_usr_id, $a_crs_id) |
get suggested questions ids | |
static | _deleteUser ($user_id) |
Data Fields | |
$db = null | |
$user_id = null |
Protected Member Functions | |
resetTestForUser (ilObjTest $a_test, $a_user_id) |
class ilcourseobjective
Definition at line 19 of file class.ilCourseObjectiveResult.php.
ilCourseObjectiveResult::__deleteEntries | ( | $a_objective_ids | ) |
Definition at line 290 of file class.ilCourseObjectiveResult.php.
References $ilLog.
ilCourseObjectiveResult::__isFullfilled | ( | $question_points, | |
$objective_data | |||
) |
Definition at line 466 of file class.ilCourseObjectiveResult.php.
Referenced by _updateObjectiveStatus().
ilCourseObjectiveResult::__updatePassed | ( | $a_user_id, | |
$objective_ids | |||
) |
Definition at line 489 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, ilCourseParticipants\_getInstanceByObjId(), ilLPStatusWrapper\_updateStatus(), and DB_FETCHMODE_OBJECT.
Referenced by _updateObjectiveStatus().
|
static |
ilCourseObjectiveResult::_getAccomplished | ( | $a_user_id, | |
$a_crs_id | |||
) |
Definition at line 42 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, ilCourseObjective\_getObjectiveIds(), and DB_FETCHMODE_OBJECT.
Referenced by getAccomplished().
ilCourseObjectiveResult::_getSuggested | ( | $a_user_id, | |
$a_crs_id, | |||
$a_status = IL_OBJECTIVE_STATUS_FINAL |
|||
) |
Definition at line 71 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, ilCourseObjective\_getObjectiveIds(), DB_FETCHMODE_OBJECT, IL_OBJECTIVE_STATUS_FINAL, and IL_OBJECTIVE_STATUS_FINISHED.
Referenced by getSuggested(), and ilCourseObjectiveResultCache\readSuggested().
ilCourseObjectiveResult::_readAssignedObjectives | ( | $a_all_objectives | ) |
Definition at line 353 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by _readAssignedObjectivesOfQuestion(), getStatus(), and readStatus().
ilCourseObjectiveResult::_readAssignedObjectivesOfQuestion | ( | $a_question_id | ) |
Definition at line 328 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, _readAssignedObjectives(), and DB_FETCHMODE_OBJECT.
Referenced by _updateObjectiveResult().
ilCourseObjectiveResult::_updateObjectiveResult | ( | $a_user_id, | |
$a_active_id, | |||
$a_question_id | |||
) |
Definition at line 314 of file class.ilCourseObjectiveResult.php.
References _readAssignedObjectivesOfQuestion(), and _updateObjectiveStatus().
Referenced by assQuestion\_setReachedPoints(), and assQuestion\calculateResultsFromSolution().
ilCourseObjectiveResult::_updateObjectiveStatus | ( | $a_user_id, | |
$objectives | |||
) |
Definition at line 383 of file class.ilCourseObjectiveResult.php.
References $ilDB, $ilUser, $query, $res, $row, __isFullfilled(), __updatePassed(), and DB_FETCHMODE_OBJECT.
Referenced by _updateObjectiveResult(), and readStatus().
ilCourseObjectiveResult::getAccomplished | ( | $a_crs_id | ) |
Definition at line 38 of file class.ilCourseObjectiveResult.php.
References _getAccomplished(), and getUserId().
Referenced by getStatus().
ilCourseObjectiveResult::getStatus | ( | $a_course_id | ) |
Definition at line 205 of file class.ilCourseObjectiveResult.php.
References assQuestion\_areAnswered(), ilCourseObjective\_getObjectiveIds(), _readAssignedObjectives(), getAccomplished(), getSuggested(), getUserId(), IL_OBJECTIVE_STATUS_EMPTY, IL_OBJECTIVE_STATUS_FINAL, IL_OBJECTIVE_STATUS_FINISHED, IL_OBJECTIVE_STATUS_NONE, IL_OBJECTIVE_STATUS_PRETEST, and IL_OBJECTIVE_STATUS_PRETEST_NON_SUGGEST.
ilCourseObjectiveResult::getSuggested | ( | $a_crs_id, | |
$a_status = IL_OBJECTIVE_STATUS_FINAL |
|||
) |
Definition at line 66 of file class.ilCourseObjectiveResult.php.
References _getSuggested(), and getUserId().
Referenced by getStatus().
|
static |
get suggested questions ids
object | $a_usr_id | |
object | $a_crs_id |
Definition at line 122 of file class.ilCourseObjectiveResult.php.
ilCourseObjectiveResult::getUserId | ( | ) |
Definition at line 33 of file class.ilCourseObjectiveResult.php.
References $user_id.
Referenced by getAccomplished(), getStatus(), getSuggested(), hasAccomplishedObjective(), readStatus(), and reset().
ilCourseObjectiveResult::hasAccomplishedObjective | ( | $a_objective_id | ) |
Definition at line 258 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and getUserId().
ilCourseObjectiveResult::ilCourseObjectiveResult | ( | $a_usr_id | ) |
Definition at line 25 of file class.ilCourseObjectiveResult.php.
References $ilDB.
ilCourseObjectiveResult::readStatus | ( | $a_crs_id | ) |
Definition at line 274 of file class.ilCourseObjectiveResult.php.
References ilCourseObjective\_getObjectiveIds(), _readAssignedObjectives(), _updateObjectiveStatus(), and getUserId().
ilCourseObjectiveResult::reset | ( | $a_course_id | ) |
Definition at line 154 of file class.ilCourseObjectiveResult.php.
References $ilDB, $query, $res, ilCourseObjective\_getObjectiveIds(), ilLPStatusWrapper\_updateStatus(), ilLOSettings\getInstanceByObjId(), getUserId(), and resetTestForUser().
Referenced by ilObjCourseGUI\resetObject().
|
protected |
Definition at line 136 of file class.ilCourseObjectiveResult.php.
References ilObjTest\getActiveIdOfUser(), ilObject\getId(), ilObjectLP\getInstance(), and ilObjTest\removeTestActives().
Referenced by reset().
ilCourseObjectiveResult::$db = null |
Definition at line 21 of file class.ilCourseObjectiveResult.php.
ilCourseObjectiveResult::$user_id = null |
Definition at line 22 of file class.ilCourseObjectiveResult.php.
Referenced by _deleteUser(), and getUserId().