ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Public Member Functions | |
__construct (int $a_course_obj_id, int $a_user_id) | |
delete () | |
saveObjectiveResult (int $a_objective_id, int $a_type, int $a_status, int $a_result_percentage, int $a_limit_percentage, int $a_tries, bool $a_is_final) | |
getCompletedObjectiveIdsByType (int $a_type) | |
getSuggestedObjectiveIds () | |
Get all objectives where the user failed the initial test. More... | |
getCompletedObjectiveIds () | |
Get all objectives where the user completed the qualified test. More... | |
getFailedObjectiveIds (bool $a_is_final=true) | |
getCourseResultsForUserPresentation () | |
Static Public Member Functions | |
static | updateResultLimit (int $a_objective_id, int $a_test_type, int $a_limit) |
static | lookupResult (int $a_course_obj_id, int $a_user_id, int $a_objective_id, int $a_tst_type) |
static | resetFinalByObjective (int $a_objective_id) |
static | deleteResultsForUser (int $a_user_id) |
static | deleteResultsForCourse (int $a_course_id) |
static | deleteResultsFromLP (int $a_course_id, array $a_user_ids, bool $a_remove_initial, bool $a_remove_qualified, array $a_objective_ids) |
static | getObjectiveStatusForLP (int $a_user_id, int $a_obj_id, array $a_objective_ids) |
static | getSummarizedObjectiveStatusForLP (int $a_obj_id, array $a_objective_ids, int $a_user_id=0) |
static | hasResults (int $a_container_id, int $a_user_id) |
static | getCompletionsOfUser (int $a_user_id, int $a_from_ts, int $a_to_ts) |
Get completed learning objectives for user and time frame. More... | |
Data Fields | |
const | TYPE_INITIAL = 1 |
const | TYPE_QUALIFIED = 2 |
const | STATUS_COMPLETED = 1 |
const | STATUS_FAILED = 2 |
Protected Member Functions | |
findObjectiveIds (int $a_type=0, int $a_status=0, ?bool $a_is_final=null) | |
Static Protected Member Functions | |
static | isValidType (int $a_type) |
static | isValidStatus (int $a_status) |
Protected Attributes | |
int | $course_obj_id |
int | $user_id |
ilDBInterface | $db |
Definition at line 25 of file class.ilLOUserResults.php.
ilLOUserResults::__construct | ( | int | $a_course_obj_id, |
int | $a_user_id | ||
) |
ilLOUserResults::delete | ( | ) |
Definition at line 142 of file class.ilLOUserResults.php.
References $query, and ilDBConstants\T_INTEGER.
Referenced by ilObjCourseGUI\resetObject().
|
static |
Definition at line 129 of file class.ilLOUserResults.php.
|
static |
Definition at line 115 of file class.ilLOUserResults.php.
Referenced by ilObjCourse\_deleteUser().
|
static |
Definition at line 150 of file class.ilLOUserResults.php.
Referenced by ilTestLP\resetCustomLPDataForUserIds().
|
protected |
Definition at line 226 of file class.ilLOUserResults.php.
References $res, isValidStatus(), and isValidType().
Referenced by getCompletedObjectiveIds(), getCompletedObjectiveIdsByType(), getFailedObjectiveIds(), and getSuggestedObjectiveIds().
ilLOUserResults::getCompletedObjectiveIds | ( | ) |
Get all objectives where the user completed the qualified test.
Definition at line 268 of file class.ilLOUserResults.php.
References ILIAS\LTI\ToolProvider\$settings, findObjectiveIds(), and ilLOSettings\getInstanceByObjId().
ilLOUserResults::getCompletedObjectiveIdsByType | ( | int | $a_type | ) |
Definition at line 252 of file class.ilLOUserResults.php.
References findObjectiveIds().
|
static |
Get completed learning objectives for user and time frame.
Definition at line 487 of file class.ilLOUserResults.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilCourseLearningHistoryProvider\getEntries().
ilLOUserResults::getCourseResultsForUserPresentation | ( | ) |
Definition at line 305 of file class.ilLOUserResults.php.
References $res, ILIAS\LTI\ToolProvider\$settings, $type, ilLOSettings\getInstanceByObjId(), and ILIAS\Repository\int().
ilLOUserResults::getFailedObjectiveIds | ( | bool | $a_is_final = true | ) |
Definition at line 300 of file class.ilLOUserResults.php.
References findObjectiveIds().
|
static |
Definition at line 335 of file class.ilLOUserResults.php.
References $DIC, $ilDB, $res, ilLOSettings\getInstanceByObjId(), ILIAS\Repository\int(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED_NUM, and ilLPStatus\LP_STATUS_IN_PROGRESS_NUM.
Referenced by ilTrQuery\getObjectivesStatusForUser().
ilLOUserResults::getSuggestedObjectiveIds | ( | ) |
Get all objectives where the user failed the initial test.
Definition at line 260 of file class.ilLOUserResults.php.
References findObjectiveIds().
|
static |
Definition at line 388 of file class.ilLOUserResults.php.
References $DIC, $ilDB, $res, $user_id, ilLOSettings\getInstanceByObjId(), ILIAS\Repository\int(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED_NUM, and ilLPStatus\LP_STATUS_IN_PROGRESS_NUM.
Referenced by ilLPStatusObjectives\_getStatusInfo(), and ilLPStatusObjectives\determineStatus().
|
static |
Definition at line 468 of file class.ilLOUserResults.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
|
staticprotected |
Definition at line 110 of file class.ilLOUserResults.php.
Referenced by findObjectiveIds().
|
staticprotected |
Definition at line 105 of file class.ilLOUserResults.php.
Referenced by findObjectiveIds().
|
static |
Definition at line 60 of file class.ilLOUserResults.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOTestQuestionAdapter\initUserResult(), ilLOMemberTestResultTableGUI\parse(), and ilLOTestQuestionAdapter\updateQuestionResult().
|
static |
Definition at line 94 of file class.ilLOUserResults.php.
References $DIC, $query, ilDBInterface\manipulate(), and ilDBInterface\quote().
ilLOUserResults::saveObjectiveResult | ( | int | $a_objective_id, |
int | $a_type, | ||
int | $a_status, | ||
int | $a_result_percentage, | ||
int | $a_limit_percentage, | ||
int | $a_tries, | ||
bool | $a_is_final | ||
) |
Definition at line 193 of file class.ilLOUserResults.php.
|
static |
Definition at line 48 of file class.ilLOUserResults.php.
References $DIC, $query, ilDBInterface\manipulate(), ilDBInterface\quote(), and ilDBConstants\T_INTEGER.
Referenced by ilCourseObjectivesGUI\updateFinalTestLimits(), and ilCourseObjectivesGUI\updateSelfAssessmentLimits().
|
protected |
Definition at line 27 of file class.ilLOUserResults.php.
|
protected |
Definition at line 36 of file class.ilLOUserResults.php.
|
protected |
Definition at line 28 of file class.ilLOUserResults.php.
Referenced by getSummarizedObjectiveStatusForLP().
const ilLOUserResults::STATUS_COMPLETED = 1 |
Definition at line 33 of file class.ilLOUserResults.php.
Referenced by ilTrQuery\getUserObjectiveMatrix(), and ilLOTestQuestionAdapter\updateQuestionResult().
const ilLOUserResults::STATUS_FAILED = 2 |
Definition at line 34 of file class.ilLOUserResults.php.
Referenced by ilTrQuery\getUserObjectiveMatrix(), and ilLOTestQuestionAdapter\updateQuestionResult().
const ilLOUserResults::TYPE_INITIAL = 1 |
Definition at line 30 of file class.ilLOUserResults.php.
Referenced by ilTestLearningObjectivesStatusGUI\getUsersObjectivesResults(), ilPortfolioPageGUI\parseLOUserResults(), and ilCourseObjectivesGUI\updateSelfAssessmentLimits().
const ilLOUserResults::TYPE_QUALIFIED = 2 |
Definition at line 31 of file class.ilLOUserResults.php.
Referenced by ilTrQuery\getUserObjectiveMatrix(), ilTestLearningObjectivesStatusGUI\getUsersObjectivesResults(), ilPortfolioPageGUI\parseLOUserResults(), and ilCourseObjectivesGUI\updateFinalTestLimits().