|
ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilExerciseMembers. More...
Collaboration diagram for ilExerciseMembers:Public Member Functions | |
| ilExerciseMembers ($a_obj_id, $a_ref_id) | |
| getRefId () | |
| getObjId () | |
| setObjId ($a_obj_id) | |
| getMembers () | |
| setMembers ($a_members) | |
| assignMember ($a_usr_id) | |
| Assign a user to the exercise. | |
| isAssigned ($a_id) | |
| assignMembers ($a_members) | |
| deassignMember ($a_usr_id) | |
| Detaches a user from an exercise. | |
| deassignMembers ($a_members) | |
| setStatus ($a_status) | |
| getStatus () | |
| getStatusByMember ($a_member_id) | |
| setStatusForMember ($a_member_id, $a_status) | |
| set status for member (notgraded|passed|failed) | |
| updateStatusTimeForMember ($a_member_id) | |
| Update status time (last change) for member. | |
| setStatusSent ($a_status) | |
| getStatusSent () | |
| getStatusSentByMember ($a_member_id) | |
| setStatusSentForMember ($a_member_id, $a_status) | |
| getStatusReturned () | |
| setStatusReturned ($a_status) | |
| getStatusReturnedByMember ($a_member_id) | |
| setStatusReturnedForMember ($a_member_id, $a_status) | |
| setStatusFeedback ($a_status) | |
| getStatusFeedback () | |
| getStatusFeedbackByMember ($a_member_id) | |
| setStatusFeedbackForMember ($a_member_id, $a_status) | |
| getNotice () | |
| setNotice ($a_notice) | |
| getNoticeByMember ($a_member_id) | |
| hasReturned ($a_member_id) | |
| getAllDeliveredFiles () | |
| Get all delivered files. | |
| & | getDeliveredFiles ($a_member_id) |
| Returns an array of all delivered files of an user. | |
| deleteDeliveredFiles ($file_id_array, $a_member_id) | |
| Deletes already delivered files. | |
| deliverReturnedFiles ($a_member_id, $a_only_new=false) | |
| Delivers the returned files of an user. | |
| updateTutorDownloadTime ($a_member_id) | |
| Update the timestamp of the last download of current user (=tutor) for member $a_member_id. | |
| downloadSelectedFiles ($array_file_id, $a_user_id) | |
| downloadSingleFile ($filename, $filetitle) | |
| downloadMultipleFiles ($array_filenames, $pathname, $a_member_id=0) | |
| setNoticeForMember ($a_member_id, $a_notice) | |
| read () | |
| ilClone ($a_new_id) | |
| delete () | |
| _getMembers ($a_obj_id) | |
| _getReturned ($a_obj_id) | |
| _getPassedUsers ($a_obj_id) | |
| _getFailedUsers ($a_obj_id) | |
| _lookupStatus ($a_obj_id, $a_user_id) | |
| lookup current status (notgraded|passed|failed) | |
Data Fields | |
| $ilias | |
| $ref_id | |
| $obj_id | |
| $members | |
| $status | |
| $status_feedback | |
| $status_sent | |
| $status_returned | |
| $notice | |
Class ilExerciseMembers.
Definition at line 33 of file class.ilExerciseMembers.php.
| ilExerciseMembers::_getFailedUsers | ( | $a_obj_id | ) |
Definition at line 868 of file class.ilExerciseMembers.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilLPStatusExerciseReturned\_getFailed().
Here is the caller graph for this function:| ilExerciseMembers::_getMembers | ( | $a_obj_id | ) |
Definition at line 816 of file class.ilExerciseMembers.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilLPStatusExerciseReturned\_getNotAttempted().
Here is the caller graph for this function:| ilExerciseMembers::_getPassedUsers | ( | $a_obj_id | ) |
Definition at line 853 of file class.ilExerciseMembers.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilLPStatusExerciseReturned\_getCompleted().
Here is the caller graph for this function:| ilExerciseMembers::_getReturned | ( | $a_obj_id | ) |
Definition at line 832 of file class.ilExerciseMembers.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilLPStatusExerciseReturned\_getInProgress().
Here is the caller graph for this function:| ilExerciseMembers::_lookupStatus | ( | $a_obj_id, | |
| $a_user_id | |||
| ) |
lookup current status (notgraded|passed|failed)
| int | $a_obj_id | exercise id |
| int | $a_user_id | member id |
Definition at line 889 of file class.ilExerciseMembers.php.
References $res, and DB_FETCHMODE_ASSOC.
Referenced by ilObjExercise\_checkCondition(), ilObjExerciseGUI\infoScreen(), and ilObjExerciseGUI\membersObject().
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 82 of file class.ilExerciseMembers.php.
References $res, 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 | ) |
Definition at line 105 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 137 of file class.ilExerciseMembers.php.
References $dir, deleteDeliveredFiles(), getDeliveredFiles(), 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 | ) |
Definition at line 173 of file class.ilExerciseMembers.php.
References deassignMember().
Here is the call graph for this function:| ilExerciseMembers::delete | ( | ) |
Definition at line 806 of file class.ilExerciseMembers.php.
References getObjId().
Here is the call graph for this function:| ilExerciseMembers::deleteDeliveredFiles | ( | $file_id_array, | |
| $a_member_id | |||
| ) |
Deletes already delivered files.
| array | $file_id_array | An array containing database ids of the delivered files |
| numeric | $a_member_id | The database id of the user public |
Definition at line 457 of file class.ilExerciseMembers.php.
References $result, ilObjExercise\_fixFilename(), DB_FETCHMODE_ASSOC, and ilUtil\quoteArray().
Referenced by deassignMember().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::deliverReturnedFiles | ( | $a_member_id, | |
$a_only_new = false |
|||
| ) |
Delivers the returned files of an user.
| numeric | $a_member_id | The database id of the user public |
Definition at line 495 of file class.ilExerciseMembers.php.
References $dir, $file, $filename, $result, ilObjExercise\_fixFilename(), DB_FETCHMODE_ASSOC, downloadMultipleFiles(), downloadSingleFile(), getObjId(), and updateTutorDownloadTime().
Here is the call graph for this function:| ilExerciseMembers::downloadMultipleFiles | ( | $array_filenames, | |
| $pathname, | |||
$a_member_id = 0 |
|||
| ) |
Definition at line 618 of file class.ilExerciseMembers.php.
References $filename, $lng, ilObjUser\_lookupName(), ilUtil\delDir(), ilUtil\deliverFile(), ilUtil\escapeShellArg(), getObjId(), ilUtil\ilTempnam(), and ilUtil\makeDir().
Referenced by deliverReturnedFiles(), and downloadSelectedFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::downloadSelectedFiles | ( | $array_file_id, | |
| $a_user_id | |||
| ) |
Definition at line 572 of file class.ilExerciseMembers.php.
References $dir, $file, $result, ilObjExercise\_fixFilename(), DB_FETCHMODE_ASSOC, downloadMultipleFiles(), downloadSingleFile(), and ilUtil\quoteArray().
Here is the call graph for this function:| ilExerciseMembers::downloadSingleFile | ( | $filename, | |
| $filetitle | |||
| ) |
Definition at line 612 of file class.ilExerciseMembers.php.
References $filename, and ilUtil\deliverFile().
Referenced by deliverReturnedFiles(), and downloadSelectedFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::getAllDeliveredFiles | ( | ) |
Get all delivered files.
Definition at line 405 of file class.ilExerciseMembers.php.
References $res, ilObjExercise\_fixFilenameArray(), DB_FETCHMODE_ASSOC, and getObjId().
Here is the call graph for this function:| & ilExerciseMembers::getDeliveredFiles | ( | $a_member_id | ) |
Returns an array of all delivered files of an user.
| numeric | $a_member_id | The user id public |
Definition at line 430 of file class.ilExerciseMembers.php.
References $result, ilObjExercise\_fixFilenameArray(), and DB_FETCHMODE_ASSOC.
Referenced by deassignMember().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::getMembers | ( | ) |
Definition at line 68 of file class.ilExerciseMembers.php.
Referenced by isAssigned().
Here is the caller graph for this function:| ilExerciseMembers::getNotice | ( | ) |
Definition at line 363 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getNoticeByMember | ( | $a_member_id | ) |
Definition at line 378 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getObjId | ( | ) |
Definition at line 60 of file class.ilExerciseMembers.php.
References $obj_id.
Referenced by assignMember(), deassignMember(), delete(), deliverReturnedFiles(), downloadMultipleFiles(), getAllDeliveredFiles(), ilClone(), read(), setNoticeForMember(), setStatusFeedbackForMember(), setStatusForMember(), setStatusReturnedForMember(), setStatusSentForMember(), updateStatusTimeForMember(), and updateTutorDownloadTime().
Here is the caller graph for this function:| ilExerciseMembers::getRefId | ( | ) |
Definition at line 56 of file class.ilExerciseMembers.php.
References $ref_id.
Referenced by assignMember(), and deassignMember().
Here is the caller graph for this function:| ilExerciseMembers::getStatus | ( | ) |
Definition at line 195 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getStatusByMember | ( | $a_member_id | ) |
Definition at line 199 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getStatusFeedback | ( | ) |
Definition at line 334 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getStatusFeedbackByMember | ( | $a_member_id | ) |
Definition at line 338 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getStatusReturned | ( | ) |
Definition at line 288 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getStatusReturnedByMember | ( | $a_member_id | ) |
Definition at line 302 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getStatusSent | ( | ) |
Definition at line 260 of file class.ilExerciseMembers.php.
| ilExerciseMembers::getStatusSentByMember | ( | $a_member_id | ) |
Definition at line 264 of file class.ilExerciseMembers.php.
| ilExerciseMembers::hasReturned | ( | $a_member_id | ) |
Definition at line 390 of file class.ilExerciseMembers.php.
References $result.
| ilExerciseMembers::ilClone | ( | $a_new_id | ) |
Definition at line 770 of file class.ilExerciseMembers.php.
References $data, $res, DB_FETCHMODE_OBJECT, and getObjId().
Here is the call graph for this function:| ilExerciseMembers::ilExerciseMembers | ( | $a_obj_id, | |
| $a_ref_id | |||
| ) |
Definition at line 46 of file class.ilExerciseMembers.php.
References $ilias.
| ilExerciseMembers::isAssigned | ( | $a_id | ) |
Definition at line 100 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 | ( | ) |
Definition at line 735 of file class.ilExerciseMembers.php.
References $res, DB_FETCHMODE_OBJECT, getObjId(), setMembers(), setNotice(), setStatus(), setStatusFeedback(), setStatusReturned(), and setStatusSent().
Referenced by assignMember(), deassignMember(), setNoticeForMember(), setStatusFeedbackForMember(), setStatusForMember(), setStatusReturnedForMember(), setStatusSentForMember(), and updateStatusTimeForMember().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::setMembers | ( | $a_members | ) |
Definition at line 72 of file class.ilExerciseMembers.php.
Referenced by read().
Here is the caller graph for this function:| ilExerciseMembers::setNotice | ( | $a_notice | ) |
Definition at line 368 of file class.ilExerciseMembers.php.
Referenced by read().
Here is the caller graph for this function:| ilExerciseMembers::setNoticeForMember | ( | $a_member_id, | |
| $a_notice | |||
| ) |
Definition at line 673 of file class.ilExerciseMembers.php.
References getObjId(), and read().
Here is the call graph for this function:| ilExerciseMembers::setObjId | ( | $a_obj_id | ) |
Definition at line 64 of file class.ilExerciseMembers.php.
| ilExerciseMembers::setStatus | ( | $a_status | ) |
Definition at line 187 of file class.ilExerciseMembers.php.
Referenced by read().
Here is the caller graph for this function:| ilExerciseMembers::setStatusFeedback | ( | $a_status | ) |
Definition at line 326 of file class.ilExerciseMembers.php.
Referenced by read().
Here is the caller graph for this function:| ilExerciseMembers::setStatusFeedbackForMember | ( | $a_member_id, | |
| $a_status | |||
| ) |
Definition at line 347 of file class.ilExerciseMembers.php.
References getObjId(), and read().
Here is the call graph for this function:| ilExerciseMembers::setStatusForMember | ( | $a_member_id, | |
| $a_status | |||
| ) |
set status for member (notgraded|passed|failed)
| int | $a_member_id | user id of member |
| string | $a_status | (notgraded|passed|failed) |
Definition at line 214 of file class.ilExerciseMembers.php.
References getObjId(), and read().
Here is the call graph for this function:| ilExerciseMembers::setStatusReturned | ( | $a_status | ) |
Definition at line 292 of file class.ilExerciseMembers.php.
Referenced by read().
Here is the caller graph for this function:| ilExerciseMembers::setStatusReturnedForMember | ( | $a_member_id, | |
| $a_status | |||
| ) |
Definition at line 310 of file class.ilExerciseMembers.php.
References getObjId(), and read().
Here is the call graph for this function:| ilExerciseMembers::setStatusSent | ( | $a_status | ) |
Definition at line 252 of file class.ilExerciseMembers.php.
Referenced by read().
Here is the caller graph for this function:| ilExerciseMembers::setStatusSentForMember | ( | $a_member_id, | |
| $a_status | |||
| ) |
Definition at line 272 of file class.ilExerciseMembers.php.
References getObjId(), and read().
Here is the call graph for this function:| ilExerciseMembers::updateStatusTimeForMember | ( | $a_member_id | ) |
Update status time (last change) for member.
| int | $a_member_id | user id of member |
Definition at line 236 of file class.ilExerciseMembers.php.
References getObjId(), and read().
Here is the call graph for this function:| ilExerciseMembers::updateTutorDownloadTime | ( | $a_member_id | ) |
Update the timestamp of the last download of current user (=tutor) for member $a_member_id.
| int | $a_member_id | Member ID. |
Definition at line 561 of file class.ilExerciseMembers.php.
References getObjId().
Referenced by deliverReturnedFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseMembers::$ilias |
Definition at line 35 of file class.ilExerciseMembers.php.
Referenced by ilExerciseMembers().
| ilExerciseMembers::$members |
Definition at line 39 of file class.ilExerciseMembers.php.
| ilExerciseMembers::$notice |
Definition at line 44 of file class.ilExerciseMembers.php.
| ilExerciseMembers::$obj_id |
Definition at line 38 of file class.ilExerciseMembers.php.
Referenced by getObjId().
| ilExerciseMembers::$ref_id |
Definition at line 37 of file class.ilExerciseMembers.php.
Referenced by getRefId().
| ilExerciseMembers::$status |
Definition at line 40 of file class.ilExerciseMembers.php.
| ilExerciseMembers::$status_feedback |
Definition at line 41 of file class.ilExerciseMembers.php.
| ilExerciseMembers::$status_returned |
Definition at line 43 of file class.ilExerciseMembers.php.
| ilExerciseMembers::$status_sent |
Definition at line 42 of file class.ilExerciseMembers.php.