ILIAS
Release_4_1_x_branch Revision 61804
|
Class ilExerciseMembers. More...
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 368 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getFailed().
ilExerciseMembers::_getMembers | ( | $a_obj_id | ) |
Definition at line 286 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getNotAttempted(), and ilExerciseXMLWriter\handleAssignmentMembers().
ilExerciseMembers::_getPassedUsers | ( | $a_obj_id | ) |
Get all users that passed the exercise.
Definition at line 350 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getCompleted().
ilExerciseMembers::_getReturned | ( | $a_obj_id | ) |
Get returned status for all members (if they have anything returned for any assignment)
Definition at line 307 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getInProgress().
ilExerciseMembers::_hasReturned | ( | $a_obj_id, | |
$a_user_id | |||
) |
Has user returned anything in any assignment?
integer | object id |
integer | user id |
Definition at line 331 of file class.ilExerciseMembers.php.
References $ilDB.
Referenced by ilLPStatusExerciseReturned\determineStatus().
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 393 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjExercise\_checkCondition(), ilLPStatusExerciseReturned\determineStatus(), ilObjExercise\exportGradesExcel(), and ilExGradesTableGUI\fillRow().
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 447 of file class.ilExerciseMembers.php.
References $ilDB, and ilLPStatusWrapper\_updateStatus().
Referenced by ilObjExercise\deliverFile(), and ilObjExercise\processUploadedFile().
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 421 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(), ilExAssignment\createNewUserRecords(), ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), and read().
Referenced by assignMembers().
ilExerciseMembers::assignMembers | ( | $a_members | ) |
Assign members to exercise.
Definition at line 115 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 147 of file class.ilExerciseMembers.php.
References $ilDB, $query, ilLPStatusWrapper\_updateStatus(), ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), and read().
Referenced by deassignMembers().
ilExerciseMembers::deassignMembers | ( | $a_members | ) |
Deassign members.
Definition at line 197 of file class.ilExerciseMembers.php.
References deassignMember().
ilExerciseMembers::delete | ( | ) |
Definition at line 272 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.
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 235 of file class.ilExerciseMembers.php.
References $data, $ilDB, $query, $res, $row, ilLPStatusWrapper\_updateStatus(), and getObjId().
ilExerciseMembers::ilExerciseMembers | ( | $a_exc | ) |
Definition at line 23 of file class.ilExerciseMembers.php.
References read().
ilExerciseMembers::isAssigned | ( | $a_id | ) |
Is user assigned to exercise?
Definition at line 107 of file class.ilExerciseMembers.php.
References getMembers().
Referenced by assignMembers().
ilExerciseMembers::read | ( | ) |
Read all members.
Definition at line 215 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, getObjId(), and setMembers().
Referenced by assignMember(), deassignMember(), and ilExerciseMembers().
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.