ILIAS
trunk Revision v11.0_alpha-1753-gb21ca8c4367
|
Class ilExerciseMembers. More...
Public Member Functions | |
__construct (ilObjExercise $a_exc) | |
getRefId () | |
getObjId () | |
setObjId (int $a_obj_id) | |
getMembers () | |
setMembers (array $a_members) | |
assignMember (int $a_usr_id) | |
Assign a user to the exercise. More... | |
isAssigned (int $a_id) | |
assignMembers (array $a_members) | |
Assign members to exercise. More... | |
deassignMember (int $a_usr_id) | |
Detaches a user from an exercise. More... | |
read () | |
ilClone (int $a_new_id) | |
delete () | |
Static Public Member Functions | |
static | _getMembers (int $a_obj_id) |
static | _lookupStatus (int $a_obj_id, int $a_user_id) |
Lookup current status (notgraded|passed|failed) More... | |
static | _writeStatus (int $a_obj_id, int $a_user_id, string $a_status) |
Write user status This information is determined by the assignment status and saved redundantly in this table for performance reasons. More... | |
static | _writeReturned (int $a_obj_id, int $a_user_id, int $a_status) |
Write returned status. More... | |
static | _getReturned (int $a_obj_id) |
Get returned status for all members (if they have anything returned for any assignment) More... | |
static | _hasReturned (int $a_obj_id, int $a_user_id) |
Has user returned anything in any assignment? More... | |
static | _getPassedUsers (int $a_obj_id) |
Get all users that passed the exercise. More... | |
static | _getFailedUsers (int $a_obj_id) |
Get all users that failed the exercise. More... | |
Data Fields | |
int | $ref_id |
int | $obj_id |
array | $members |
string | $status |
Protected Attributes | |
IndividualDeadlineManager | $individual_deadlines |
ilDBInterface | $db |
ilRecommendedContentManager | $recommended_content_manager |
ilObjExercise | $exc |
Class ilExerciseMembers.
Definition at line 26 of file class.ilExerciseMembers.php.
ilExerciseMembers::__construct | ( | ilObjExercise | $a_exc | ) |
Definition at line 37 of file class.ilExerciseMembers.php.
References $DIC, ilObject\getId(), ilObject\getRefId(), and read().
|
static |
Get all users that failed the exercise.
Definition at line 401 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and $res.
Referenced by ilLPStatusExerciseReturned\_getFailed().
|
static |
Definition at line 230 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and $res.
Referenced by ilLPStatusExerciseReturned\getMembers(), ilExerciseXMLWriter\handleAssignmentMembers(), ilExAssignment\sendFeedbackNotifications(), and ilExPeerReview\validatePeerReviewGroups().
|
static |
Get all users that passed the exercise.
Definition at line 381 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and $res.
Referenced by ilLPStatusExerciseReturned\_getCompleted().
|
static |
Get returned status for all members (if they have anything returned for any assignment)
Definition at line 341 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and $res.
Referenced by ilLPStatusExerciseReturned\_getInProgress().
|
static |
Has user returned anything in any assignment?
Definition at line 363 of file class.ilExerciseMembers.php.
Referenced by ilLPStatusExerciseReturned\determineStatus().
|
static |
Lookup current status (notgraded|passed|failed)
This information is determined by the assignment status and saved redundantly in this table for performance reasons.
int | $a_obj_id | exercise id |
int | $a_user_id | member id |
Definition at line 262 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, $res, and null.
Referenced by ilObjExerciseAccess\checkCondition(), ilLPStatusExerciseReturned\determineStatus(), ilObjExercise\exportGradesExcel(), ilExGradesTableGUI\fillRow(), and ILIAS\Exercise\Certificate\CertificateExerciseMembersHelper\lookUpStatus().
|
static |
Write returned status.
The returned status is initially 0. If the first file is returned by a user for any assignment of the exercise, the returned status is set to 1 and it will stay that way, even if this file is deleted again. -> learning progress uses this to determine "in progress" status
Definition at line 313 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\processExerciseStatus().
|
static |
Write user status This information is determined by the assignment status and saved redundantly in this table for performance reasons.
See ilObjExercise->updateUserStatus().
Definition at line 286 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\updateUserStatus().
ilExerciseMembers::assignMember | ( | int | $a_usr_id | ) |
Assign a user to the exercise.
Definition at line 80 of file class.ilExerciseMembers.php.
References $db, $ilDB, ilLPStatusWrapper\_updateStatus(), ilExAssignment\createNewUserRecords(), getObjId(), and read().
Referenced by assignMembers().
ilExerciseMembers::assignMembers | ( | array | $a_members | ) |
Assign members to exercise.
int[] | $a_members |
Definition at line 114 of file class.ilExerciseMembers.php.
References assignMember(), and isAssigned().
ilExerciseMembers::deassignMember | ( | int | $a_usr_id | ) |
Detaches a user from an exercise.
ilExcUnknownAssignmentTypeException |
Definition at line 137 of file class.ilExerciseMembers.php.
References $db, $ilDB, ilLPStatusWrapper\_updateStatus(), ilExSubmission\deleteUser(), ilExcIndividualDeadline\getInstance(), ilExAssignment\getInstancesByExercise(), getObjId(), getRefId(), and read().
ilExerciseMembers::delete | ( | ) |
Definition at line 219 of file class.ilExerciseMembers.php.
References $db, $ilDB, ilLPStatusWrapper\_refreshStatus(), and getObjId().
ilExerciseMembers::getMembers | ( | ) |
Definition at line 67 of file class.ilExerciseMembers.php.
Referenced by ilExGradesTableGUI\__construct(), and isAssigned().
ilExerciseMembers::getObjId | ( | ) |
Definition at line 57 of file class.ilExerciseMembers.php.
References $obj_id.
Referenced by assignMember(), deassignMember(), delete(), ilClone(), and read().
ilExerciseMembers::getRefId | ( | ) |
Definition at line 51 of file class.ilExerciseMembers.php.
References $ref_id.
Referenced by deassignMember().
ilExerciseMembers::ilClone | ( | int | $a_new_id | ) |
Definition at line 185 of file class.ilExerciseMembers.php.
References $data, $db, $ilDB, $res, ilLPStatusWrapper\_updateStatus(), and getObjId().
ilExerciseMembers::isAssigned | ( | int | $a_id | ) |
Definition at line 104 of file class.ilExerciseMembers.php.
References getMembers().
Referenced by assignMembers().
ilExerciseMembers::read | ( | ) |
Definition at line 166 of file class.ilExerciseMembers.php.
References $db, $ilDB, $res, ilObject\_lookupType(), getObjId(), and setMembers().
Referenced by __construct(), assignMember(), and deassignMember().
ilExerciseMembers::setMembers | ( | array | $a_members | ) |
Definition at line 72 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setObjId | ( | int | $a_obj_id | ) |
Definition at line 62 of file class.ilExerciseMembers.php.
|
protected |
Definition at line 29 of file class.ilExerciseMembers.php.
Referenced by assignMember(), deassignMember(), delete(), ilClone(), and read().
|
protected |
Definition at line 35 of file class.ilExerciseMembers.php.
|
protected |
Definition at line 28 of file class.ilExerciseMembers.php.
array ilExerciseMembers::$members |
Definition at line 32 of file class.ilExerciseMembers.php.
int ilExerciseMembers::$obj_id |
Definition at line 31 of file class.ilExerciseMembers.php.
Referenced by getObjId().
|
protected |
Definition at line 34 of file class.ilExerciseMembers.php.
int ilExerciseMembers::$ref_id |
Definition at line 30 of file class.ilExerciseMembers.php.
Referenced by getRefId().
string ilExerciseMembers::$status |
Definition at line 33 of file class.ilExerciseMembers.php.