ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilExerciseMembers. More...
Public Member Functions | |
__construct ($a_exc) | |
getRefId () | |
Get exercise ref id. More... | |
getObjId () | |
Get exercise id. More... | |
setObjId ($a_obj_id) | |
Set exercise id. More... | |
getMembers () | |
Get members array. More... | |
setMembers ($a_members) | |
Set members array. More... | |
assignMember ($a_usr_id) | |
Assign a user to the exercise. More... | |
isAssigned ($a_id) | |
Is user assigned to exercise? More... | |
assignMembers ($a_members) | |
Assign members to exercise. More... | |
deassignMember ($a_usr_id) | |
Detaches a user from an exercise. More... | |
deassignMembers ($a_members) | |
Deassign members. More... | |
read () | |
Read all members. More... | |
ilClone ($a_new_id) | |
delete () | |
Static Public Member Functions | |
static | _getMembers ($a_obj_id) |
static | _lookupStatus ($a_obj_id, $a_user_id) |
Lookup current status (notgraded|passed|failed) More... | |
static | _writeStatus ($a_obj_id, $a_user_id, $a_status) |
Write user status. More... | |
static | _writeReturned ($a_obj_id, $a_user_id, $a_status) |
Write returned status. More... | |
static | _getReturned ($a_obj_id) |
Get returned status for all members (if they have anything returned for any assignment) More... | |
static | _hasReturned ($a_obj_id, $a_user_id) |
Has user returned anything in any assignment? More... | |
static | _getPassedUsers ($a_obj_id) |
Get all users that passed the exercise. More... | |
static | _getFailedUsers ($a_obj_id) |
Get all users that failed the exercise. More... | |
Data Fields | |
$ref_id | |
$obj_id | |
$members | |
$status | |
ilExerciseMembers::__construct | ( | $a_exc | ) |
Definition at line 23 of file class.ilExerciseMembers.php.
References read().
|
static |
Get all users that failed the exercise.
Definition at line 437 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, and array.
Referenced by ilLPStatusExerciseReturned\_getFailed().
|
static |
Definition at line 269 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, and array.
Referenced by ilLPStatusExerciseReturned\getMembers(), ilExerciseXMLWriter\handleAssignmentMembers(), ilExAssignment\sendFeedbackNotifications(), and ilExPeerReview\validatePeerReviewGroups().
|
static |
Get all users that passed the exercise.
Definition at line 419 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, and array.
Referenced by ilLPStatusExerciseReturned\_getCompleted().
|
static |
Get returned status for all members (if they have anything returned for any assignment)
Definition at line 376 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, and array.
Referenced by ilLPStatusExerciseReturned\_getInProgress().
|
static |
Has user returned anything in any assignment?
integer | object id |
integer | user id |
Definition at line 400 of file class.ilExerciseMembers.php.
References $ilDB.
Referenced by ilLPStatusExerciseReturned\determineStatus().
|
static |
Lookup current status (notgraded|passed|failed)
This information is determined by the assignment status and saved redundtantly in this table for performance reasons.
int | $a_obj_id | exercise id |
int | $a_user_id | member id |
Definition at line 299 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjExerciseAccess\checkCondition(), ilLPStatusExerciseReturned\determineStatus(), ilObjExercise\exportGradesExcel(), ilExGradesTableGUI\fillRow(), ilExerciseCertificateAdapter\getCertificateVariablesForPresentation(), and ilObjExercise\hasUserCertificate().
|
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
int | exercise id |
int | user id |
text | status |
Definition at line 353 of file class.ilExerciseMembers.php.
References $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\processExerciseStatus().
|
static |
Write user status.
This information is determined by the assignment status and saved redundtantly in this table for performance reasons. See ilObjExercise->updateUserStatus().
int | exercise id |
int | user id |
text | status |
Definition at line 327 of file class.ilExerciseMembers.php.
References $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\updateUserStatus().
ilExerciseMembers::assignMember | ( | $a_usr_id | ) |
Assign a user to the exercise.
int | $a_usr_id | user id |
Definition at line 76 of file class.ilExerciseMembers.php.
References $ilDB, ilLPStatusWrapper\_updateStatus(), array, ilExAssignment\createNewUserRecords(), ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), and read().
Referenced by assignMembers().
ilExerciseMembers::assignMembers | ( | $a_members | ) |
Assign members to exercise.
Definition at line 118 of file class.ilExerciseMembers.php.
References assignMember(), and isAssigned().
ilExerciseMembers::deassignMember | ( | $a_usr_id | ) |
Detaches a user from an exercise.
int | $a_usr_id | user id |
Definition at line 150 of file class.ilExerciseMembers.php.
References $ilDB, $query, ilLPStatusWrapper\_updateStatus(), ilExSubmission\deleteUser(), ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), and read().
Referenced by deassignMembers().
ilExerciseMembers::deassignMembers | ( | $a_members | ) |
Deassign members.
Definition at line 180 of file class.ilExerciseMembers.php.
References deassignMember().
ilExerciseMembers::delete | ( | ) |
Definition at line 255 of file class.ilExerciseMembers.php.
References $ilDB, $query, ilLPStatusWrapper\_refreshStatus(), and getObjId().
ilExerciseMembers::getMembers | ( | ) |
Get members array.
Definition at line 58 of file class.ilExerciseMembers.php.
References array.
Referenced by isAssigned().
ilExerciseMembers::getObjId | ( | ) |
Get exercise id.
Definition at line 42 of file class.ilExerciseMembers.php.
References $obj_id.
Referenced by assignMember(), deassignMember(), delete(), ilClone(), and read().
ilExerciseMembers::getRefId | ( | ) |
Get exercise ref id.
Definition at line 34 of file class.ilExerciseMembers.php.
References $ref_id.
Referenced by assignMember(), and deassignMember().
ilExerciseMembers::ilClone | ( | $a_new_id | ) |
Definition at line 218 of file class.ilExerciseMembers.php.
References $data, $ilDB, $query, $res, $row, ilLPStatusWrapper\_updateStatus(), array, and getObjId().
ilExerciseMembers::isAssigned | ( | $a_id | ) |
Is user assigned to exercise?
Definition at line 110 of file class.ilExerciseMembers.php.
References getMembers().
Referenced by assignMembers().
ilExerciseMembers::read | ( | ) |
Read all members.
Definition at line 198 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, array, getObjId(), and setMembers().
Referenced by __construct(), assignMember(), and deassignMember().
ilExerciseMembers::setMembers | ( | $a_members | ) |
Set members array.
Definition at line 66 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setObjId | ( | $a_obj_id | ) |
Set exercise id.
Definition at line 50 of file class.ilExerciseMembers.php.
ilExerciseMembers::$members |
Definition at line 16 of file class.ilExerciseMembers.php.
ilExerciseMembers::$obj_id |
Definition at line 15 of file class.ilExerciseMembers.php.
Referenced by getObjId().
ilExerciseMembers::$ref_id |
Definition at line 14 of file class.ilExerciseMembers.php.
Referenced by getRefId().
ilExerciseMembers::$status |
Definition at line 17 of file class.ilExerciseMembers.php.