ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | |
Protected Attributes | |
$db | |
ilExerciseMembers::__construct | ( | $a_exc | ) |
Definition at line 28 of file class.ilExerciseMembers.php.
|
static |
Get all users that failed the exercise.
Definition at line 446 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, $query, $res, $row, and array.
Referenced by ilLPStatusExerciseReturned\_getFailed().
|
static |
Definition at line 266 of file class.ilExerciseMembers.php.
References $DIC, $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 427 of file class.ilExerciseMembers.php.
References $DIC, $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 381 of file class.ilExerciseMembers.php.
References $DIC, $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 406 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 redundtantly in this table for performance reasons.
int | $a_obj_id | exercise id |
int | $a_user_id | member id |
Definition at line 297 of file class.ilExerciseMembers.php.
References $DIC, $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 355 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 redundtantly in this table for performance reasons. See ilObjExercise->updateUserStatus().
int | exercise id |
int | user id |
text | status |
Definition at line 326 of file class.ilExerciseMembers.php.
References $DIC, $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 84 of file class.ilExerciseMembers.php.
References $db, $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 127 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 151 of file class.ilExerciseMembers.php.
References $db, $ilDB, $query, ilLPStatusWrapper\_updateStatus(), ilExSubmission\deleteUser(), ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), and read().
Referenced by deassignMembers().
ilExerciseMembers::deassignMembers | ( | $a_members | ) |
Deassign members.
Definition at line 181 of file class.ilExerciseMembers.php.
References deassignMember().
ilExerciseMembers::delete | ( | ) |
Definition at line 252 of file class.ilExerciseMembers.php.
References $db, $ilDB, $query, ilLPStatusWrapper\_refreshStatus(), and getObjId().
ilExerciseMembers::getMembers | ( | ) |
Get members array.
Definition at line 66 of file class.ilExerciseMembers.php.
References array.
Referenced by isAssigned().
ilExerciseMembers::getObjId | ( | ) |
Get exercise id.
Definition at line 50 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 42 of file class.ilExerciseMembers.php.
References $ref_id.
Referenced by assignMember(), and deassignMember().
ilExerciseMembers::ilClone | ( | $a_new_id | ) |
Definition at line 216 of file class.ilExerciseMembers.php.
References $data, $db, $ilDB, $query, $res, $row, ilLPStatusWrapper\_updateStatus(), array, and getObjId().
ilExerciseMembers::isAssigned | ( | $a_id | ) |
Is user assigned to exercise?
Definition at line 119 of file class.ilExerciseMembers.php.
References getMembers().
Referenced by assignMembers().
ilExerciseMembers::read | ( | ) |
Read all members.
Definition at line 195 of file class.ilExerciseMembers.php.
References $db, $ilDB, $query, $res, $row, ilObject\_lookupType(), array, getObjId(), and setMembers().
Referenced by __construct(), assignMember(), and deassignMember().
ilExerciseMembers::setMembers | ( | $a_members | ) |
Set members array.
Definition at line 74 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setObjId | ( | $a_obj_id | ) |
Set exercise id.
Definition at line 58 of file class.ilExerciseMembers.php.
|
protected |
Definition at line 17 of file class.ilExerciseMembers.php.
Referenced by assignMember(), deassignMember(), delete(), ilClone(), and read().
ilExerciseMembers::$members |
Definition at line 21 of file class.ilExerciseMembers.php.
ilExerciseMembers::$obj_id |
Definition at line 20 of file class.ilExerciseMembers.php.
Referenced by getObjId().
ilExerciseMembers::$ref_id |
Definition at line 19 of file class.ilExerciseMembers.php.
Referenced by getRefId().
ilExerciseMembers::$status |
Definition at line 22 of file class.ilExerciseMembers.php.