|
ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilExerciseMembers. More...
Collaboration diagram for ilExerciseMembers:Public Member Functions | |
| ilExerciseMembers ($a_exc) | |
| getRefId () | |
| Get exercise ref id. | |
| getObjId () | |
| Get exercise id. | |
| setObjId ($a_obj_id) | |
| Set exercise id. | |
| getMembers () | |
| Get members array. | |
| setMembers ($a_members) | |
| Set members array. | |
| assignMember ($a_usr_id) | |
| Assign a user to the exercise. | |
| isAssigned ($a_id) | |
| Is user assigned to exercise? | |
| assignMembers ($a_members) | |
| Assign members to exercise. | |
| deassignMember ($a_usr_id) | |
| Detaches a user from an exercise. | |
| deassignMembers ($a_members) | |
| Deassign members. | |
| read () | |
| Read all members. | |
| ilClone ($a_new_id) | |
| delete () | |
| _getMembers ($a_obj_id) | |
| _getReturned ($a_obj_id) | |
| Get returned status for all members (if they have anything returned for any assignment) | |
| _hasReturned ($a_obj_id, $a_user_id) | |
| Has user returned anything in any assignment? | |
| _getPassedUsers ($a_obj_id) | |
| Get all users that passed the exercise. | |
| _getFailedUsers ($a_obj_id) | |
| Get all users that failed the exercise. | |
| _lookupStatus ($a_obj_id, $a_user_id) | |
| Lookup current status (notgraded|passed|failed) | |
| _writeStatus ($a_obj_id, $a_user_id, $a_status) | |
| Write user status. | |
| _writeReturned ($a_obj_id, $a_user_id, $a_status) | |
| Write returned status. | |
Data Fields | |
| $ref_id | |
| $obj_id | |
| $members | |
| $status | |
Class ilExerciseMembers.
Definition at line 12 of file class.ilExerciseMembers.php.
| ilExerciseMembers::_getFailedUsers | ( | $a_obj_id | ) |
Get all users that failed the exercise.
Definition at line 354 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getFailed().
Here is the caller graph for this function:| ilExerciseMembers::_getMembers | ( | $a_obj_id | ) |
Definition at line 268 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\getMembers(), ilExerciseXMLWriter\handleAssignmentMembers(), ilExAssignment\sendFeedbackNotifications(), and ilExAssignment\validatePeerReviewGroups().
Here is the caller graph for this function:| ilExerciseMembers::_getPassedUsers | ( | $a_obj_id | ) |
Get all users that passed the exercise.
Definition at line 336 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getCompleted().
Here is the caller graph for this function:| ilExerciseMembers::_getReturned | ( | $a_obj_id | ) |
Get returned status for all members (if they have anything returned for any assignment)
Definition at line 293 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getInProgress().
Here is the caller graph for this function:| ilExerciseMembers::_hasReturned | ( | $a_obj_id, | |
| $a_user_id | |||
| ) |
Has user returned anything in any assignment?
| integer | object id |
| integer | user id |
Definition at line 317 of file class.ilExerciseMembers.php.
References $ilDB.
Referenced by ilLPStatusExerciseReturned\determineStatus().
Here is the caller graph for this function:| ilExerciseMembers::_lookupStatus | ( | $a_obj_id, | |
| $a_user_id | |||
| ) |
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 379 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjExerciseAccess\checkCondition(), ilObjExercise\exportGradesExcel(), ilExGradesTableGUI\fillRow(), ilExerciseCertificateAdapter\getCertificateVariablesForPresentation(), and ilObjExercise\hasUserCertificate().
Here is the caller graph for this function:| ilExerciseMembers::_writeReturned | ( | $a_obj_id, | |
| $a_user_id, | |||
| $a_status | |||
| ) |
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 433 of file class.ilExerciseMembers.php.
References $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\addResourceObject(), ilObjExerciseGUI\addTeamMemberActionObject(), ilObjExercise\deliverFile(), ilObjExercise\processUploadedFile(), and ilObjExerciseGUI\removeTeamMemberObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::_writeStatus | ( | $a_obj_id, | |
| $a_user_id, | |||
| $a_status | |||
| ) |
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 407 of file class.ilExerciseMembers.php.
References $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 76 of file class.ilExerciseMembers.php.
References $ilDB, ilLPStatusWrapper\_updateStatus(), ilExAssignment\createNewUserRecords(), ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), 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 118 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 150 of file class.ilExerciseMembers.php.
References $ilDB, $query, ilLPStatusWrapper\_updateStatus(), ilObjectFactory\getInstanceByObjId(), 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 179 of file class.ilExerciseMembers.php.
References deassignMember().
Here is the call graph for this function:| ilExerciseMembers::delete | ( | ) |
Definition at line 254 of file class.ilExerciseMembers.php.
References $ilDB, $query, ilLPStatusWrapper\_refreshStatus(), and getObjId().
Here is the call graph for this function:| ilExerciseMembers::getMembers | ( | ) |
Get members array.
Definition at line 58 of file class.ilExerciseMembers.php.
Referenced by isAssigned().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilExerciseMembers::getRefId | ( | ) |
Get exercise ref id.
Definition at line 34 of file class.ilExerciseMembers.php.
References $ref_id.
Referenced by assignMember(), and deassignMember().
Here is the caller graph for this function:| ilExerciseMembers::ilClone | ( | $a_new_id | ) |
Definition at line 217 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, ilLPStatusWrapper\_updateStatus(), and getObjId().
Here is the call graph for this function:| ilExerciseMembers::ilExerciseMembers | ( | $a_exc | ) |
Definition at line 23 of file class.ilExerciseMembers.php.
References read().
Here is the call graph for this function:| ilExerciseMembers::isAssigned | ( | $a_id | ) |
Is user assigned to exercise?
Definition at line 110 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 197 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, getObjId(), and setMembers().
Referenced by assignMember(), deassignMember(), and ilExerciseMembers().
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 66 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 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.