ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_course_obj_id, $a_user_id) | |
Constructor. | |
delete () | |
Delete for user and course type $ilDB. | |
saveObjectiveResult ($a_objective_id, $a_type, $a_status, $a_result_percentage, $a_limit_percentage, $a_tries, $a_is_final) | |
Save objective result. | |
getCompletedObjectiveIdsByType ($a_type) | |
All completed objectives by type. | |
getSuggestedObjectiveIds () | |
Get all objectives where the user failed the initial test. | |
getCompletedObjectiveIds () | |
Get all objectives where the user completed the qualified test. | |
getFailedObjectiveIds ($a_is_final=true) | |
Get all objectives where the user failed the qualified test. | |
getCourseResultsForUserPresentation () | |
Get all results for course and user. |
Static Public Member Functions | |
static | lookupResult ($a_course_obj_id, $a_user_id, $a_objective_id, $a_tst_type) |
Lookup user result. | |
static | resetFinalByObjective ($a_objective_id) |
static | deleteResultsForUser ($a_user_id) |
Delete all result entries for user. | |
static | deleteResultsForCourse ($a_course_id) |
Delete all result entries for course. | |
static | deleteResultsFromLP ($a_course_id, array $a_user_ids, $a_remove_initial, $a_remove_qualified) |
Delete all (qualified) result entries for course members. | |
static | getObjectiveStatusForLP ($a_user_id, array $a_objective_ids) |
static | getSummarizedObjectiveStatusForLP (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. |
Static Protected Member Functions | |
static | isValidType ($a_type) |
Is given type valid? | |
static | isValidStatus ($a_status) |
Is given status valid? |
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 124 of file class.ilLOUserResults.php.
References $ilDB.
|
static |
Delete all result entries for user.
int | $a_user_id |
Definition at line 103 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 |
Definition at line 161 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 239 of file class.ilLOUserResults.php.
References $ilDB, $res, $row, 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 297 of file class.ilLOUserResults.php.
References findObjectiveIds().
ilLOUserResults::getCompletedObjectiveIdsByType | ( | $a_type | ) |
All completed objectives by type.
type | $a_type |
Definition at line 277 of file class.ilLOUserResults.php.
References findObjectiveIds().
ilLOUserResults::getCourseResultsForUserPresentation | ( | ) |
Get all results for course and user.
Definition at line 318 of file class.ilLOUserResults.php.
References $ilDB, $res, and $row.
ilLOUserResults::getFailedObjectiveIds | ( | $a_is_final = true | ) |
Get all objectives where the user failed the qualified test.
bool | $a_is_final |
Definition at line 308 of file class.ilLOUserResults.php.
References findObjectiveIds().
|
static |
Definition at line 340 of file class.ilLOUserResults.php.
References $ilDB, $res, $row, ilLPStatus\LP_STATUS_COMPLETED_NUM, and ilLPStatus\LP_STATUS_FAILED_NUM.
Referenced by ilTrQuery\getObjectivesStatusForUser().
ilLOUserResults::getSuggestedObjectiveIds | ( | ) |
Get all objectives where the user failed the initial test.
Definition at line 287 of file class.ilLOUserResults.php.
References findObjectiveIds().
|
static |
Definition at line 383 of file class.ilLOUserResults.php.
References $ilDB, $res, $row, $user_id, 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 449 of file class.ilLOUserResults.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilContainerObjectiveGUI\getMainContent().
|
staticprotected |
Is given status valid?
int | $a_status |
Definition at line 92 of file class.ilLOUserResults.php.
Referenced by findObjectiveIds().
|
staticprotected |
Is given type valid?
int | $a_type |
Definition at line 81 of file class.ilLOUserResults.php.
Referenced by findObjectiveIds().
|
static |
Lookup user result.
Definition at line 38 of file class.ilLOUserResults.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilContainerObjectiveGUI\addItemDetails(), ilLOTestQuestionAdapter\initUserResult(), and ilLOTestQuestionAdapter\updateQuestionResult().
|
static |
Definition at line 66 of file class.ilLOUserResults.php.
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 203 of file class.ilLOUserResults.php.
References $ilDB.
|
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\getObjectsDataForUser(), ilTrQuery\getUserObjectiveMatrix(), ilContainerObjectiveGUI\renderTest(), and ilLOTestQuestionAdapter\updateQuestionResult().
const ilLOUserResults::STATUS_FAILED = 2 |
Definition at line 20 of file class.ilLOUserResults.php.
Referenced by ilTrQuery\getObjectsDataForUser(), 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\getObjectsDataForUser(), ilTrQuery\getUserObjectiveMatrix(), ilLOTestQuestionAdapter\initUserResult(), ilPortfolioPageGUI\parseLOUserResults(), ilContainerObjectiveGUI\parseLOUserResults(), ilObjCourseGUI\redirectLocToTestObject(), and ilLOTestQuestionAdapter\updateQuestionResult().