|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilExerciseMembers. More...
Collaboration diagram for ilExerciseMembers: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 | |
| $recommended_content_manager | |
Class ilExerciseMembers.
Definition at line 11 of file class.ilExerciseMembers.php.
| ilExerciseMembers::__construct | ( | $a_exc | ) |
Definition at line 32 of file class.ilExerciseMembers.php.
Here is the call graph for this function:
|
static |
Get all users that failed the exercise.
Definition at line 448 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilLPStatusExerciseReturned\_getFailed().
Here is the caller graph for this function:
|
static |
Definition at line 270 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilLPStatusExerciseReturned\getMembers(), ilExerciseXMLWriter\handleAssignmentMembers(), ilExAssignment\sendFeedbackNotifications(), and ilExPeerReview\validatePeerReviewGroups().
Here is the caller graph for this function:
|
static |
Get all users that passed the exercise.
Definition at line 429 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilLPStatusExerciseReturned\_getCompleted().
Here is the caller graph for this function:
|
static |
Get returned status for all members (if they have anything returned for any assignment)
Definition at line 383 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilLPStatusExerciseReturned\_getInProgress().
Here is the caller graph for this function:
|
static |
Has user returned anything in any assignment?
| integer | object id |
| integer | user id |
Definition at line 408 of file class.ilExerciseMembers.php.
Referenced by ilLPStatusExerciseReturned\determineStatus().
Here is the caller graph for this function:
|
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 301 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilObjExerciseAccess\checkCondition(), ilLPStatusExerciseReturned\determineStatus(), ilObjExercise\exportGradesExcel(), ilExGradesTableGUI\fillRow(), and ilCertificateExerciseMembersHelper\lookUpStatus().
Here is the caller graph for this function:
|
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 358 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\processExerciseStatus().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 330 of file class.ilExerciseMembers.php.
References $DIC, $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\updateUserStatus().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::assignMember | ( | $a_usr_id | ) |
Assign a user to the exercise.
| int | $a_usr_id | user id |
Definition at line 90 of file class.ilExerciseMembers.php.
References $db, $ilDB, ilLPStatusWrapper\_updateStatus(), ilExAssignment\createNewUserRecords(), getObjId(), and read().
Referenced by assignMembers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::assignMembers | ( | $a_members | ) |
Assign members to exercise.
Definition at line 130 of file class.ilExerciseMembers.php.
References assignMember(), and isAssigned().
Here is the call graph for this function:| ilExerciseMembers::deassignMember | ( | $a_usr_id | ) |
Detaches a user from an exercise.
| int | $a_usr_id | user id |
Definition at line 154 of file class.ilExerciseMembers.php.
References $db, $ilDB, $query, ilLPStatusWrapper\_updateStatus(), ilExSubmission\deleteUser(), ilExcIndividualDeadline\getInstance(), ilExAssignment\getInstancesByExercise(), getObjId(), getRefId(), and read().
Referenced by deassignMembers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::deassignMembers | ( | $a_members | ) |
Deassign members.
Definition at line 187 of file class.ilExerciseMembers.php.
References deassignMember().
Here is the call graph for this function:| ilExerciseMembers::delete | ( | ) |
Definition at line 257 of file class.ilExerciseMembers.php.
References $db, $ilDB, $query, ilLPStatusWrapper\_refreshStatus(), and getObjId().
Here is the call graph for this function:| ilExerciseMembers::getMembers | ( | ) |
Get members array.
Definition at line 72 of file class.ilExerciseMembers.php.
Referenced by isAssigned().
Here is the caller graph for this function:| ilExerciseMembers::getObjId | ( | ) |
Get exercise id.
Definition at line 56 of file class.ilExerciseMembers.php.
References $obj_id.
Referenced by assignMember(), deassignMember(), delete(), ilClone(), and read().
Here is the caller graph for this function:| ilExerciseMembers::getRefId | ( | ) |
Get exercise ref id.
Definition at line 48 of file class.ilExerciseMembers.php.
References $ref_id.
Referenced by deassignMember().
Here is the caller graph for this function:| ilExerciseMembers::ilClone | ( | $a_new_id | ) |
Definition at line 222 of file class.ilExerciseMembers.php.
References $data, $db, $ilDB, $query, $res, ilLPStatusWrapper\_updateStatus(), and getObjId().
Here is the call graph for this function:| ilExerciseMembers::isAssigned | ( | $a_id | ) |
Is user assigned to exercise?
Definition at line 122 of file class.ilExerciseMembers.php.
References getMembers().
Referenced by assignMembers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::read | ( | ) |
Read all members.
Definition at line 201 of file class.ilExerciseMembers.php.
References $db, $ilDB, $query, $res, ilObject\_lookupType(), getObjId(), and setMembers().
Referenced by __construct(), assignMember(), and deassignMember().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::setMembers | ( | $a_members | ) |
Set members array.
Definition at line 80 of file class.ilExerciseMembers.php.
Referenced by read().
Here is the caller graph for this function:| ilExerciseMembers::setObjId | ( | $a_obj_id | ) |
Set exercise id.
Definition at line 64 of file class.ilExerciseMembers.php.
|
protected |
Definition at line 16 of file class.ilExerciseMembers.php.
Referenced by assignMember(), deassignMember(), delete(), ilClone(), and read().
| ilExerciseMembers::$members |
Definition at line 20 of file class.ilExerciseMembers.php.
| ilExerciseMembers::$obj_id |
Definition at line 19 of file class.ilExerciseMembers.php.
Referenced by getObjId().
|
protected |
Definition at line 30 of file class.ilExerciseMembers.php.
| ilExerciseMembers::$ref_id |
Definition at line 18 of file class.ilExerciseMembers.php.
Referenced by getRefId().
| ilExerciseMembers::$status |
Definition at line 21 of file class.ilExerciseMembers.php.