ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($a_course_obj_id, $a_user_id) | |
Constructor. More... | |
delete () | |
Delete for user and course type $ilDB. More... | |
saveObjectiveResult ($a_objective_id, $a_type, $a_status, $a_result_percentage, $a_limit_percentage, $a_tries, $a_is_final) | |
Save objective result. More... | |
getCompletedObjectiveIdsByType ($a_type) | |
All completed objectives by type. More... | |
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 ($a_is_final=true) | |
Get all objectives where the user failed the qualified test. More... | |
getCourseResultsForUserPresentation () | |
Get all results for course and user. More... | |
Static Public Member Functions | |
static | lookupResult ($a_course_obj_id, $a_user_id, $a_objective_id, $a_tst_type) |
Lookup user result. More... | |
static | resetFinalByObjective ($a_objective_id) |
static | deleteResultsForUser ($a_user_id) |
Delete all result entries for user. More... | |
static | deleteResultsForCourse ($a_course_id) |
Delete all result entries for course. More... | |
static | deleteResultsFromLP ($a_course_id, array $a_user_ids, $a_remove_initial, $a_remove_qualified, array $a_objective_ids) |
Delete all (qualified) result entries for course members. More... | |
static | getObjectiveStatusForLP ($a_user_id, $a_obj_id, array $a_objective_ids) |
static | getSummarizedObjectiveStatusForLP ($a_obj_id, array $a_objective_ids, $a_user_id=null) |
static | hasResults ($a_container_id, $a_user_id) |
Data Fields | |
const | TYPE_INITIAL = 1 |
const | TYPE_QUALIFIED = 2 |
const | STATUS_COMPLETED = 1 |
const | STATUS_FAILED = 2 |
Protected Member Functions | |
findObjectiveIds ($a_type=null, $a_status=null, $a_is_final=null) | |
Find objective ids by type and/or status. More... | |
Static Protected Member Functions | |
static | isValidType ($a_type) |
Is given type valid? More... | |
static | isValidStatus ($a_status) |
Is given status valid? More... | |
Protected Attributes | |
$course_obj_id | |
$user_id | |
Definition at line 11 of file class.ilLOUserResults.php.
ilLOUserResults::__construct | ( | $a_course_obj_id, | |
$a_user_id | |||
) |
Constructor.
int | $a_course_obj_id | |
int | $a_user_id |
Definition at line 29 of file class.ilLOUserResults.php.
ilLOUserResults::delete | ( | ) |
Delete for user and course type $ilDB.
Definition at line 142 of file class.ilLOUserResults.php.
Referenced by ilObjCourseGUI\resetObject().
|
static |
Delete all result entries for course.
int | $a_course_id |
Definition at line 125 of file class.ilLOUserResults.php.
References $ilDB.
|
static |
Delete all result entries for user.
int | $a_user_id |
Definition at line 105 of file class.ilLOUserResults.php.
References $ilDB.
Referenced by ilObjCourse\_deleteUser().
|
static |
Delete all (qualified) result entries for course members.
int | $a_course_id | |
array | $a_user_ids | |
bool | $a_remove_initial | |
bool | $a_remove_qualified | |
array | $a_objective_ids |
Definition at line 162 of file class.ilLOUserResults.php.
References $ilDB.
Referenced by ilTestLP\resetCustomLPDataForUserIds().
|
protected |
Find objective ids by type and/or status.
int | $a_type | |
int | $a_status | |
bool | $a_is_final |
Definition at line 246 of file class.ilLOUserResults.php.
References $a_type, $ilDB, $res, $row, array, 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 300 of file class.ilLOUserResults.php.
References array, findObjectiveIds(), and ilLOSettings\getInstanceByObjId().
ilLOUserResults::getCompletedObjectiveIdsByType | ( | $a_type | ) |
All completed objectives by type.
type | $a_type |
Definition at line 280 of file class.ilLOUserResults.php.
References $a_type, and findObjectiveIds().
ilLOUserResults::getCourseResultsForUserPresentation | ( | ) |
Get all results for course and user.
Definition at line 348 of file class.ilLOUserResults.php.
References $ilDB, $res, $row, $type, array, and ilLOSettings\getInstanceByObjId().
ilLOUserResults::getFailedObjectiveIds | ( | $a_is_final = true | ) |
Get all objectives where the user failed the qualified test.
bool | $a_is_final |
Definition at line 338 of file class.ilLOUserResults.php.
References findObjectiveIds().
|
static |
Definition at line 380 of file class.ilLOUserResults.php.
References $ilDB, $res, $row, array, ilLOSettings\getInstanceByObjId(), 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 290 of file class.ilLOUserResults.php.
References findObjectiveIds().
|
static |
Definition at line 435 of file class.ilLOUserResults.php.
References $counter, $GLOBALS, $ilDB, $res, $row, $user_id, array, ilLOSettings\getInstanceByObjId(), 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 517 of file class.ilLOUserResults.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilContainerObjectiveGUI\getMainContent().
|
staticprotected |
Is given status valid?
int | $a_status |
Definition at line 94 of file class.ilLOUserResults.php.
References array.
Referenced by findObjectiveIds().
|
staticprotected |
Is given type valid?
int | $a_type |
Definition at line 83 of file class.ilLOUserResults.php.
References $a_type, and array.
Referenced by findObjectiveIds().
|
static |
Lookup user result.
Definition at line 39 of file class.ilLOUserResults.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilContainerObjectiveGUI\addItemDetails(), ilLOTestQuestionAdapter\initUserResult(), ilLOMemberTestResultTableGUI\parse(), and ilLOTestQuestionAdapter\updateQuestionResult().
|
static |
Definition at line 68 of file class.ilLOUserResults.php.
References $GLOBALS, and $query.
ilLOUserResults::saveObjectiveResult | ( | $a_objective_id, | |
$a_type, | |||
$a_status, | |||
$a_result_percentage, | |||
$a_limit_percentage, | |||
$a_tries, | |||
$a_is_final | |||
) |
Save objective result.
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 210 of file class.ilLOUserResults.php.
References $a_type, $ilDB, array, and time.
|
protected |
Definition at line 13 of file class.ilLOUserResults.php.
|
protected |
Definition at line 14 of file class.ilLOUserResults.php.
Referenced by getSummarizedObjectiveStatusForLP().
const ilLOUserResults::STATUS_COMPLETED = 1 |
Definition at line 19 of file class.ilLOUserResults.php.
Referenced by ilContainerObjectiveGUI\buildObjectiveProgressBar(), ilTrQuery\getUserObjectiveMatrix(), ilContainerObjectiveGUI\renderTest(), and ilLOTestQuestionAdapter\updateQuestionResult().
const ilLOUserResults::STATUS_FAILED = 2 |
Definition at line 20 of file class.ilLOUserResults.php.
Referenced by ilTrQuery\getUserObjectiveMatrix(), and ilLOTestQuestionAdapter\updateQuestionResult().
const ilLOUserResults::TYPE_INITIAL = 1 |
const ilLOUserResults::TYPE_QUALIFIED = 2 |
Definition at line 17 of file class.ilLOUserResults.php.
Referenced by ilContainerObjectiveGUI\addItemDetails(), ilContainerObjectiveGUI\buildObjectiveProgressBar(), ilTrQuery\getUserObjectiveMatrix(), ilTestLearningObjectivesStatusGUI\getUsersObjectivesResults(), ilContainerObjectiveGUI\parseLOUserResults(), and ilPortfolioPageGUI\parseLOUserResults().