ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilExerciseMembers. More...
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 12 of file class.ilExerciseMembers.php.
ilExerciseMembers::_getFailedUsers | ( | $a_obj_id | ) |
Definition at line 888 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getFailed().
ilExerciseMembers::_getMembers | ( | $a_obj_id | ) |
Definition at line 836 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getNotAttempted().
ilExerciseMembers::_getPassedUsers | ( | $a_obj_id | ) |
Definition at line 873 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getCompleted().
ilExerciseMembers::_getReturned | ( | $a_obj_id | ) |
Definition at line 852 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLPStatusExerciseReturned\_getInProgress().
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 909 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjExercise\_checkCondition(), ilExerciseMemberTableGUI\fillRow(), and ilObjExerciseGUI\infoScreen().
ilExerciseMembers::assignMember | ( | $a_usr_id | ) |
Assign a user to the exercise.
int | $a_usr_id | user id |
Definition at line 61 of file class.ilExerciseMembers.php.
References $ilDB, ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), and read().
Referenced by assignMembers().
ilExerciseMembers::assignMembers | ( | $a_members | ) |
Definition at line 86 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 118 of file class.ilExerciseMembers.php.
References $dir, $ilDB, $key, $query, deleteDeliveredFiles(), getDeliveredFiles(), ilObjectFactory\getInstanceByObjId(), getObjId(), getRefId(), and read().
Referenced by deassignMembers().
ilExerciseMembers::deassignMembers | ( | $a_members | ) |
Definition at line 155 of file class.ilExerciseMembers.php.
References deassignMember().
ilExerciseMembers::delete | ( | ) |
Definition at line 825 of file class.ilExerciseMembers.php.
References $ilDB, $query, and getObjId().
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 454 of file class.ilExerciseMembers.php.
References $ilDB, $key, $result, $row, and ilObjExercise\_fixFilename().
Referenced by deassignMember().
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 496 of file class.ilExerciseMembers.php.
References $dir, $file, $filename, $ilDB, $q, $query, $result, $row, ilObjExercise\_fixFilename(), downloadMultipleFiles(), downloadSingleFile(), getObjId(), and updateTutorDownloadTime().
ilExerciseMembers::downloadMultipleFiles | ( | $array_filenames, | |
$pathname, | |||
$a_member_id = 0 |
|||
) |
Definition at line 624 of file class.ilExerciseMembers.php.
References $filename, $key, $lng, ilObjUser\_lookupName(), ilUtil\delDir(), ilUtil\deliverFile(), ilUtil\escapeShellArg(), getObjId(), ilUtil\ilTempnam(), and ilUtil\makeDir().
Referenced by deliverReturnedFiles(), and downloadSelectedFiles().
ilExerciseMembers::downloadSelectedFiles | ( | $array_file_id, | |
$a_user_id | |||
) |
Definition at line 576 of file class.ilExerciseMembers.php.
References $dir, $file, $ilDB, $key, $result, $row, ilObjExercise\_fixFilename(), downloadMultipleFiles(), and downloadSingleFile().
ilExerciseMembers::downloadSingleFile | ( | $filename, | |
$filetitle | |||
) |
Definition at line 618 of file class.ilExerciseMembers.php.
References $filename, and ilUtil\deliverFile().
Referenced by deliverReturnedFiles(), and downloadSelectedFiles().
ilExerciseMembers::getAllDeliveredFiles | ( | ) |
Get all delivered files.
Definition at line 390 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, ilObjExercise\_fixFilenameArray(), and getObjId().
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 416 of file class.ilExerciseMembers.php.
References $ilDB, $result, $row, ilObjExercise\_fixFilenameArray(), and getObjId().
Referenced by deassignMember().
ilExerciseMembers::getMembers | ( | ) |
Definition at line 47 of file class.ilExerciseMembers.php.
Referenced by isAssigned().
ilExerciseMembers::getNotice | ( | ) |
Definition at line 350 of file class.ilExerciseMembers.php.
ilExerciseMembers::getNoticeByMember | ( | $a_member_id | ) |
Definition at line 365 of file class.ilExerciseMembers.php.
ilExerciseMembers::getObjId | ( | ) |
Definition at line 39 of file class.ilExerciseMembers.php.
References $obj_id.
Referenced by assignMember(), deassignMember(), delete(), deliverReturnedFiles(), downloadMultipleFiles(), getAllDeliveredFiles(), getDeliveredFiles(), hasReturned(), ilClone(), read(), setNoticeForMember(), setStatusFeedbackForMember(), setStatusForMember(), setStatusReturnedForMember(), setStatusSentForMember(), updateStatusTimeForMember(), and updateTutorDownloadTime().
ilExerciseMembers::getRefId | ( | ) |
Definition at line 35 of file class.ilExerciseMembers.php.
References $ref_id.
Referenced by assignMember(), and deassignMember().
ilExerciseMembers::getStatus | ( | ) |
Definition at line 177 of file class.ilExerciseMembers.php.
ilExerciseMembers::getStatusByMember | ( | $a_member_id | ) |
Definition at line 181 of file class.ilExerciseMembers.php.
ilExerciseMembers::getStatusFeedback | ( | ) |
Definition at line 321 of file class.ilExerciseMembers.php.
ilExerciseMembers::getStatusFeedbackByMember | ( | $a_member_id | ) |
Definition at line 325 of file class.ilExerciseMembers.php.
ilExerciseMembers::getStatusReturned | ( | ) |
Definition at line 268 of file class.ilExerciseMembers.php.
ilExerciseMembers::getStatusReturnedByMember | ( | $a_member_id | ) |
Definition at line 282 of file class.ilExerciseMembers.php.
ilExerciseMembers::getStatusSent | ( | ) |
Definition at line 240 of file class.ilExerciseMembers.php.
ilExerciseMembers::getStatusSentByMember | ( | $a_member_id | ) |
Definition at line 244 of file class.ilExerciseMembers.php.
ilExerciseMembers::hasReturned | ( | $a_member_id | ) |
Definition at line 377 of file class.ilExerciseMembers.php.
References $ilDB, $result, and getObjId().
ilExerciseMembers::ilClone | ( | $a_new_id | ) |
Definition at line 783 of file class.ilExerciseMembers.php.
References $data, $ilDB, $query, $res, $row, and getObjId().
ilExerciseMembers::ilExerciseMembers | ( | $a_obj_id, | |
$a_ref_id | |||
) |
Definition at line 25 of file class.ilExerciseMembers.php.
References $ilias.
ilExerciseMembers::isAssigned | ( | $a_id | ) |
Definition at line 81 of file class.ilExerciseMembers.php.
References getMembers().
Referenced by assignMembers().
ilExerciseMembers::read | ( | ) |
Definition at line 748 of file class.ilExerciseMembers.php.
References $ilDB, $query, $res, $row, getObjId(), setMembers(), setNotice(), setStatus(), setStatusFeedback(), setStatusReturned(), and setStatusSent().
Referenced by assignMember(), deassignMember(), setNoticeForMember(), setStatusFeedbackForMember(), setStatusForMember(), setStatusReturnedForMember(), setStatusSentForMember(), and updateStatusTimeForMember().
ilExerciseMembers::setMembers | ( | $a_members | ) |
Definition at line 51 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setNotice | ( | $a_notice | ) |
Definition at line 355 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setNoticeForMember | ( | $a_member_id, | |
$a_notice | |||
) |
Definition at line 679 of file class.ilExerciseMembers.php.
References $ilDB, getObjId(), ilUtil\now(), and read().
ilExerciseMembers::setObjId | ( | $a_obj_id | ) |
Definition at line 43 of file class.ilExerciseMembers.php.
ilExerciseMembers::setStatus | ( | $a_status | ) |
Definition at line 169 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setStatusFeedback | ( | $a_status | ) |
Definition at line 313 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setStatusFeedbackForMember | ( | $a_member_id, | |
$a_status | |||
) |
Definition at line 334 of file class.ilExerciseMembers.php.
References $ilDB, getObjId(), ilUtil\now(), and read().
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 196 of file class.ilExerciseMembers.php.
References $ilDB, getObjId(), ilUtil\now(), and read().
ilExerciseMembers::setStatusReturned | ( | $a_status | ) |
Definition at line 272 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setStatusReturnedForMember | ( | $a_member_id, | |
$a_status | |||
) |
Definition at line 290 of file class.ilExerciseMembers.php.
References $ilDB, getObjId(), ilUtil\now(), and read().
ilExerciseMembers::setStatusSent | ( | $a_status | ) |
Definition at line 232 of file class.ilExerciseMembers.php.
Referenced by read().
ilExerciseMembers::setStatusSentForMember | ( | $a_member_id, | |
$a_status | |||
) |
Definition at line 252 of file class.ilExerciseMembers.php.
References $ilDB, getObjId(), ilUtil\now(), and read().
ilExerciseMembers::updateStatusTimeForMember | ( | $a_member_id | ) |
Update status time (last change) for member.
int | $a_member_id | user id of member |
Definition at line 216 of file class.ilExerciseMembers.php.
References $ilDB, getObjId(), ilUtil\now(), and read().
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 $ilDB, getObjId(), and ilUtil\now().
Referenced by deliverReturnedFiles().
ilExerciseMembers::$ilias |
Definition at line 14 of file class.ilExerciseMembers.php.
Referenced by ilExerciseMembers().
ilExerciseMembers::$members |
Definition at line 18 of file class.ilExerciseMembers.php.
ilExerciseMembers::$notice |
Definition at line 23 of file class.ilExerciseMembers.php.
ilExerciseMembers::$obj_id |
Definition at line 17 of file class.ilExerciseMembers.php.
Referenced by getObjId().
ilExerciseMembers::$ref_id |
Definition at line 16 of file class.ilExerciseMembers.php.
Referenced by getRefId().
ilExerciseMembers::$status |
Definition at line 19 of file class.ilExerciseMembers.php.
ilExerciseMembers::$status_feedback |
Definition at line 20 of file class.ilExerciseMembers.php.
ilExerciseMembers::$status_returned |
Definition at line 22 of file class.ilExerciseMembers.php.
ilExerciseMembers::$status_sent |
Definition at line 21 of file class.ilExerciseMembers.php.