ILIAS
release_4-3 Revision
|
Exercise assignment. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. | |
setId ($a_val) | |
Set assignment id. | |
getId () | |
Get assignment id. | |
setExerciseId ($a_val) | |
Set exercise id. | |
getExerciseId () | |
Get exercise id. | |
setStartTime ($a_val) | |
Set start time (timestamp) | |
getStartTime () | |
Get start time (timestamp) | |
setDeadline ($a_val) | |
Set deadline (timestamp) | |
getDeadline () | |
Get deadline (timestamp) | |
setInstruction ($a_val) | |
Set instruction. | |
getInstruction () | |
Get instruction. | |
setTitle ($a_val) | |
Set title. | |
getTitle () | |
Get title. | |
setMandatory ($a_val) | |
Set mandatory. | |
getMandatory () | |
Get mandatory. | |
setOrderNr ($a_val) | |
Set order nr. | |
getOrderNr () | |
Get order nr. | |
setType ($a_value) | |
Set type. | |
getType () | |
Get type. | |
isValidType ($a_value) | |
Is given type valid? | |
read () | |
Read from db. | |
save () | |
Save assignment. | |
update () | |
Update. | |
delete () | |
Delete assignment. | |
cloneAssignmentsOfExercise ($a_old_exc_id, $a_new_exc_id) | |
Clone assignments of exercise. | |
saveAssOrderOfExercise ($a_ex_id, $a_order) | |
Save ordering of all assignments of an exercise. | |
orderAssByDeadline ($a_ex_id) | |
Order assignments by deadline date. | |
countMandatory ($a_ex_id) | |
Order assignments by deadline date. | |
lookupCommentForUser ($a_ass_id, $a_user_id) | |
Lookup comment for the user. | |
updateCommentForUser ($a_ass_id, $a_user_id, $a_value) | |
Update comment. | |
lookupMarkOfUser ($a_ass_id, $a_user_id) | |
Lookup user mark. | |
updateMarkOfUser ($a_ass_id, $a_user_id, $a_value) | |
Update mark. | |
lookupStatusOfUser ($a_ass_id, $a_user_id) | |
was: getStatusByMember | |
updateStatusOfUser ($a_ass_id, $a_user_id, $a_status) | |
was: setStatusForMember($a_member_id,$a_status) | |
updateStatusTimeOfUser ($a_ass_id, $a_user_id) | |
was: updateStatusTimeForMember($a_user_id) | |
lookupStatusSentOfUser ($a_ass_id, $a_user_id) | |
was: getStatusSentByMember($a_member_id) | |
updateStatusSentForUser ($a_ass_id, $a_user_id, $a_status) | |
was: setStatusSentForMember($a_member_id,$a_status) | |
lookupStatusReturnedOfUser ($a_ass_id, $a_user_id) | |
was: getStatusReturnedByMember($a_member_id) | |
updateStatusReturnedForUser ($a_ass_id, $a_user_id, $a_status) | |
was: setStatusReturnedForMember($a_member_id,$a_status) | |
lookupStatusFeedbackOfUser ($a_ass_id, $a_user_id) | |
was: getStatusFeedbackByMember($a_member_id) | |
updateStatusFeedbackForUser ($a_ass_id, $a_user_id, $a_status) | |
was: setStatusFeedbackForMember($a_member_id,$a_status) | |
lookupNoticeOfUser ($a_ass_id, $a_user_id) | |
was: getNoticeByMember($a_member_id) | |
hasReturned ($a_ass_id, $a_user_id) | |
was: hasReturned($a_member_id) | |
getAllDeliveredFiles ($a_exc_id, $a_ass_id) | |
was: getAllDeliveredFiles() | |
getDeliveredFiles ($a_exc_id, $a_ass_id, $a_user_id, $a_filter_empty_filename=false) | |
was: getDeliveredFiles($a_member_id) | |
deleteDeliveredFiles ($a_exc_id, $a_ass_id, $file_id_array, $a_user_id) | |
was: deleteDeliveredFiles($file_id_array, $a_member_id) | |
deliverReturnedFiles ($a_exc_id, $a_ass_id, $a_user_id, $a_only_new=false) | |
was: deliverReturnedFiles($a_member_id, $a_only_new = false) | |
updateTutorDownloadTime ($a_exc_id, $a_ass_id, $a_user_id) | |
was: updateTutorDownloadTime($member_id) | |
downloadSelectedFiles ($a_exc_id, $a_ass_id, $a_user_id, $array_file_id) | |
was: downloadSelectedFiles($array_file_id,$a_user_id)? | |
downloadSingleFile ($a_exc_id, $a_ass_id, $a_user_id, $filename, $filetitle) | |
was: downloadSingleFile($filename, $filetitle) | |
downloadMultipleFiles ($a_exc_id, $a_ass_id, $array_filenames, $a_user_id, $a_multi_user=false) | |
was: downloadMultipleFiles($array_filenames, $pathname, $a_member_id = 0) | |
downloadAllDeliveredFiles ($a_exc_id, $a_ass_id, $members) | |
Download all submitted files of an assignment (all user) | |
updateNoticeForUser ($a_ass_id, $a_user_id, $a_notice) | |
was: setNoticeForMember($a_member_id,$a_notice) | |
_getReturned ($a_ass_id) | |
was: _getReturned($a_obj_id) | |
getMemberListData ($a_exc_id, $a_ass_id) | |
get member list data | |
uploadAssignmentFiles ($a_files) | |
Upload assignment files (from creation form) | |
getTeamId ($a_user_id, $a_create_on_demand=false) | |
Get team id for member id. | |
getTeamMembers ($a_team_id) | |
Get members of assignment team. | |
getMembersOfAllTeams () | |
Get members for all teams of assignment. | |
addTeamMember ($a_team_id, $a_user_id, $a_exc_ref_id) | |
Add new member to team. | |
removeTeamMember ($a_team_id, $a_user_id, $a_exc_ref_id) | |
Remove member from team. | |
sendNotification ($a_exc_ref_id, $a_user_id, $a_action) | |
Send notification about team status. |
Static Public Member Functions | |
static | getAssignmentDataOfExercise ($a_exc_id) |
Get assignments data of an exercise in an array. | |
static | getFiles ($a_exc_id, $a_ass_id) |
Get files. | |
static | lookupMaxOrderNrForEx ($a_exc_id) |
Select the maximum order nr for an exercise. | |
static | lookupAssignmentOnline ($a_ass_id) |
Check if assignment is online. | |
static | lookupTitle ($a_id) |
Lookup title. | |
static | lookupType ($a_id) |
Lookup type. | |
static | lookupSentTimeOfUser ($a_ass_id, $a_user_id) |
Get time when exercise has been sent per e-mail to user. | |
static | lookupFeedbackTimeOfUser ($a_ass_id, $a_user_id) |
Get time when feedback mail has been sent. | |
static | lookupStatusTimeOfUser ($a_ass_id, $a_user_id) |
Get status time. | |
static | deleteAllDeliveredFilesOfUser ($a_exc_id, $a_user_id) |
Delete all delivered files of user. | |
static | getLastSubmission ($a_ass_id, $a_user_id) |
Get the date of the last submission of a user for the assignment. | |
static | lookupAnyExerciseSent ($a_exc_id, $a_ass_id) |
Check whether exercise has been sent to any student per mail. | |
static | lookupUpdatedSubmission ($ass_id, $member_id) |
Check whether student has upload new files after tutor has set the exercise to another than notgraded. | |
static | lookupNewFiles ($ass_id, $member_id) |
Check how much files have been uploaded by the learner after the last download of the tutor. | |
static | createNewUserRecords ($a_user_id, $a_exc_id) |
Create member status record for a new participant for all assignments. | |
static | createNewAssignmentRecords ($a_ass_id, $a_exc) |
Create member status record for a new assignment for all participants. | |
static | getTeamMembersByAssignmentId ($a_ass_id, $a_user_id) |
Find team members by assignment and team member. | |
static | getTeamIdByAssignment ($a_ass_id, $a_user_id) |
Find team by assignment. | |
static | getAssignmentTeamMap ($a_ass_id) |
Get team structure for assignment. | |
static | writeTeamLog ($a_team_id, $a_action, $a_details=null) |
Add entry to team log. | |
static | getTeamLog ($a_team_id) |
Get all log entries for team. |
Data Fields | |
const | TYPE_UPLOAD = 1 |
const | TYPE_BLOG = 2 |
const | TYPE_PORTFOLIO = 3 |
const | TYPE_UPLOAD_TEAM = 4 |
const | TEAM_LOG_CREATE_TEAM = 1 |
const | TEAM_LOG_ADD_MEMBER = 2 |
const | TEAM_LOG_REMOVE_MEMBER = 3 |
const | TEAM_LOG_ADD_FILE = 4 |
const | TEAM_LOG_REMOVE_FILE = 5 |
Private Member Functions | |
lookupAssMemberField ($a_ass_id, $a_user_id, $a_field) | |
Lookup a field value of ass/member table. | |
updateAssMemberField ($a_ass_id, $a_user_id, $a_field, $a_value, $a_type) | |
Update a field value of ass/member table. |
Static Private Member Functions | |
static | lookup ($a_id, $a_field) |
Private lookup. |
ilExAssignment::__construct | ( | $a_id = 0 | ) |
ilExAssignment::_getReturned | ( | $a_ass_id | ) |
was: _getReturned($a_obj_id)
Definition at line 1494 of file class.ilExAssignment.php.
ilExAssignment::addTeamMember | ( | $a_team_id, | |
$a_user_id, | |||
$a_exc_ref_id | |||
) |
Add new member to team.
int | $a_team_id | |
int | $a_user_id | |
int | $a_exc_ref_id |
Definition at line 1845 of file class.ilExAssignment.php.
References ilObjUser\_lookupFullname(), getId(), getTeamMembers(), sendNotification(), and writeTeamLog().
ilExAssignment::cloneAssignmentsOfExercise | ( | $a_old_exc_id, | |
$a_new_exc_id | |||
) |
Clone assignments of exercise.
@return |
Definition at line 370 of file class.ilExAssignment.php.
References $d, ilFSStorageExercise\create(), getAssignmentDataOfExercise(), and ilUtil\rCopy().
Referenced by ilObjExercise\cloneObject().
ilExAssignment::countMandatory | ( | $a_ex_id | ) |
Order assignments by deadline date.
Definition at line 525 of file class.ilExAssignment.php.
Referenced by ilObjExerciseGUI\initEditCustomForm().
|
static |
Create member status record for a new assignment for all participants.
Definition at line 1718 of file class.ilExAssignment.php.
Referenced by save().
|
static |
Create member status record for a new participant for all assignments.
Definition at line 1698 of file class.ilExAssignment.php.
References getAssignmentDataOfExercise().
Referenced by ilExerciseMembers\assignMember().
ilExAssignment::delete | ( | ) |
Delete assignment.
Definition at line 320 of file class.ilExAssignment.php.
References getExerciseId().
|
static |
Delete all delivered files of user.
int | $a_exc_id | excercise id |
int | $a_user_id | user id |
Definition at line 982 of file class.ilExAssignment.php.
References $d, $filename, getTeamMembersByAssignmentId(), TYPE_UPLOAD_TEAM, and updateStatusOfUser().
ilExAssignment::deleteDeliveredFiles | ( | $a_exc_id, | |
$a_ass_id, | |||
$file_id_array, | |||
$a_user_id | |||
) |
was: deleteDeliveredFiles($file_id_array, $a_member_id)
Definition at line 914 of file class.ilExAssignment.php.
References $filename, $result, $row, getTeamIdByAssignment(), getTeamMembersByAssignmentId(), TEAM_LOG_REMOVE_FILE, and writeTeamLog().
Referenced by ilObjExerciseGUI\removeExistingSubmissions().
ilExAssignment::deliverReturnedFiles | ( | $a_exc_id, | |
$a_ass_id, | |||
$a_user_id, | |||
$a_only_new = false |
|||
) |
was: deliverReturnedFiles($a_member_id, $a_only_new = false)
Definition at line 1061 of file class.ilExAssignment.php.
References $ilUser, $query, $result, $row, ilObjUser\_lookupName(), ilObject\_lookupTitle(), downloadMultipleFiles(), downloadSingleFile(), getTeamMembersByAssignmentId(), lookupTitle(), and updateTutorDownloadTime().
Referenced by ilObjExerciseGUI\downloadNewReturnedObject(), and ilObjExerciseGUI\downloadReturnedObject().
ilExAssignment::downloadAllDeliveredFiles | ( | $a_exc_id, | |
$a_ass_id, | |||
$members | |||
) |
Download all submitted files of an assignment (all user)
$members | array of user names, key is user id |
Definition at line 1337 of file class.ilExAssignment.php.
References $lng, ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), ilUtil\delDir(), ilUtil\deliverFile(), ilUtil\dirsize(), ilUtil\escapeShellArg(), ilUtil\getASCIIFilename(), ilUtil\ilTempnam(), lookupTitle(), lookupType(), ilUtil\makeDir(), TYPE_BLOG, TYPE_PORTFOLIO, and ilUtil\unzip().
Referenced by ilObjExerciseGUI\downloadAllObject().
ilExAssignment::downloadMultipleFiles | ( | $a_exc_id, | |
$a_ass_id, | |||
$array_filenames, | |||
$a_user_id, | |||
$a_multi_user = false |
|||
) |
was: downloadMultipleFiles($array_filenames, $pathname, $a_member_id = 0)
Definition at line 1247 of file class.ilExAssignment.php.
References $filename, ilObjUser\_lookupName(), ilUtil\delDir(), ilUtil\deliverFile(), ilUtil\escapeShellArg(), exit, ilUtil\getASCIIFilename(), ilUtil\ilTempnam(), lookupTitle(), and ilUtil\makeDir().
Referenced by deliverReturnedFiles(), and downloadSelectedFiles().
ilExAssignment::downloadSelectedFiles | ( | $a_exc_id, | |
$a_ass_id, | |||
$a_user_id, | |||
$array_file_id | |||
) |
was: downloadSelectedFiles($array_file_id,$a_user_id)?
Definition at line 1167 of file class.ilExAssignment.php.
References $result, $row, ilObjUser\_lookupName(), ilObject\_lookupTitle(), downloadMultipleFiles(), downloadSingleFile(), getTeamMembersByAssignmentId(), TYPE_BLOG, and TYPE_PORTFOLIO.
Referenced by ilObjExerciseGUI\downloadObject().
ilExAssignment::downloadSingleFile | ( | $a_exc_id, | |
$a_ass_id, | |||
$a_user_id, | |||
$filename, | |||
$filetitle | |||
) |
was: downloadSingleFile($filename, $filetitle)
Definition at line 1231 of file class.ilExAssignment.php.
References $filename, and ilUtil\deliverFile().
Referenced by deliverReturnedFiles(), and downloadSelectedFiles().
ilExAssignment::getAllDeliveredFiles | ( | $a_exc_id, | |
$a_ass_id | |||
) |
Definition at line 842 of file class.ilExAssignment.php.
References $query, $res, and $row.
Referenced by ilExerciseMemberTableGUI\__construct(), and ilObjExerciseGUI\getAssignmentValues().
|
static |
Get assignments data of an exercise in an array.
Definition at line 335 of file class.ilExAssignment.php.
References $data.
Referenced by ilAssignmentsTableGUI\__construct(), ilExGradesTableGUI\__construct(), ilExParticipantTableGUI\__construct(), ilObjExerciseGUI\addMembersObject(), cloneAssignmentsOfExercise(), createNewUserRecords(), ilObjExercise\determinStatusOfUser(), ilObjExercise\exportGradesExcel(), ilExerciseXMLParser\ilExerciseXMLParser(), ilObjExerciseGUI\infoScreen(), ilObjExerciseGUI\membersObject(), ilObjExerciseGUI\showOverviewObject(), ilObjExerciseGUI\showParticipantObject(), and ilExerciseXMLWriter\start().
|
static |
Get team structure for assignment.
int | $a_ass_id |
Definition at line 1949 of file class.ilExAssignment.php.
References $row.
Referenced by ilExerciseMemberTableGUI\__construct().
ilExAssignment::getDeadline | ( | ) |
Get deadline (timestamp)
Definition at line 113 of file class.ilExAssignment.php.
Referenced by save(), and update().
ilExAssignment::getDeliveredFiles | ( | $a_exc_id, | |
$a_ass_id, | |||
$a_user_id, | |||
$a_filter_empty_filename = false |
|||
) |
was: getDeliveredFiles($a_member_id)
Definition at line 869 of file class.ilExAssignment.php.
References $result, $row, and getTeamMembersByAssignmentId().
Referenced by ilObjExerciseGUI\confirmDeleteDeliveredObject(), ilObjExerciseGUI\confirmRemoveTeamMemberObject(), ilObjExercise\deleteDeliveredFiles(), ilObjBlogGUI\downloadExcSubFile(), ilObjPortfolioGUI\downloadExcSubFile(), ilPublicSubmissionsTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilObjBlogGUI\getExerciseInfo(), ilObjPortfolioGUI\getExerciseInfo(), ilExAssignmentGUI\getOverviewBody(), and ilObjExerciseGUI\removeExistingSubmissions().
ilExAssignment::getExerciseId | ( | ) |
Get exercise id.
Definition at line 73 of file class.ilExAssignment.php.
Referenced by delete(), save(), sendNotification(), update(), and uploadAssignmentFiles().
|
static |
Get files.
Definition at line 403 of file class.ilExAssignment.php.
Referenced by ilObjBlogGUI\downloadExcAssFile(), ilObjPortfolioGUI\downloadExcAssFile(), ilObjBlogGUI\getExerciseInfo(), ilObjPortfolioGUI\getExerciseInfo(), and ilExAssignmentGUI\getOverviewBody().
ilExAssignment::getId | ( | ) |
Get assignment id.
Definition at line 53 of file class.ilExAssignment.php.
Referenced by addTeamMember(), getMembersOfAllTeams(), getTeamId(), getTeamMembers(), removeTeamMember(), update(), and uploadAssignmentFiles().
ilExAssignment::getInstruction | ( | ) |
Get instruction.
Definition at line 133 of file class.ilExAssignment.php.
Referenced by save(), and update().
|
static |
Get the date of the last submission of a user for the assignment.
int | Assignment ID |
int | User ID |
Definition at line 1518 of file class.ilExAssignment.php.
References $lng, ilUtil\getMySQLTimestamp(), and getTeamMembersByAssignmentId().
Referenced by ilPublicSubmissionsTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), getMemberListData(), and ilExAssignmentGUI\getOverviewBody().
ilExAssignment::getMandatory | ( | ) |
Get mandatory.
Definition at line 173 of file class.ilExAssignment.php.
Referenced by save(), and update().
ilExAssignment::getMemberListData | ( | $a_exc_id, | |
$a_ass_id | |||
) |
get member list data
Definition at line 1650 of file class.ilExAssignment.php.
References ilObject\_exists(), ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), ilObject\_lookupType(), and getLastSubmission().
Referenced by ilExerciseMemberTableGUI\__construct(), and ilPublicSubmissionsTableGUI\__construct().
ilExAssignment::getMembersOfAllTeams | ( | ) |
Get members for all teams of assignment.
Definition at line 1820 of file class.ilExAssignment.php.
ilExAssignment::getOrderNr | ( | ) |
Get order nr.
Definition at line 193 of file class.ilExAssignment.php.
Referenced by save(), and update().
ilExAssignment::getStartTime | ( | ) |
Get start time (timestamp)
Definition at line 93 of file class.ilExAssignment.php.
Referenced by save(), and update().
ilExAssignment::getTeamId | ( | $a_user_id, | |
$a_create_on_demand = false |
|||
) |
Get team id for member id.
team will be created if no team yet
int | $a_user_id | |
bool | $a_create_on_demand |
Definition at line 1762 of file class.ilExAssignment.php.
References $row, ilObjUser\_lookupFullname(), getId(), and writeTeamLog().
|
static |
Find team by assignment.
int | $a_ass_id | |
int | $a_user_id |
Definition at line 1923 of file class.ilExAssignment.php.
References $result.
Referenced by deleteDeliveredFiles(), ilObjExercise\deliverFile(), getTeamMembersByAssignmentId(), and ilObjExerciseGUI\showTeamLogObject().
|
static |
Get all log entries for team.
int | $a_team_id |
Definition at line 1994 of file class.ilExAssignment.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
ilExAssignment::getTeamMembers | ( | $a_team_id | ) |
Get members of assignment team.
int | $a_team_id |
Definition at line 1796 of file class.ilExAssignment.php.
Referenced by addTeamMember().
|
static |
Find team members by assignment and team member.
int | $a_ass_id | |
int | $a_user_id |
Definition at line 1894 of file class.ilExAssignment.php.
References $row, and getTeamIdByAssignment().
Referenced by ilObjExerciseGUI\confirmDeassignMembersObject(), deleteAllDeliveredFilesOfUser(), ilObjExercise\deleteDeliveredFiles(), deleteDeliveredFiles(), ilObjExercise\deliverFile(), deliverReturnedFiles(), downloadSelectedFiles(), ilExParticipantTableGUI\fillRow(), getDeliveredFiles(), getLastSubmission(), ilExAssignmentGUI\getOverviewBody(), ilObjExercise\handleSubmission(), hasReturned(), lookupNewFiles(), lookupUpdatedSubmission(), ilObjExerciseGUI\redirectFeedbackMailObject(), and ilObjExerciseGUI\sendMembersObject().
ilExAssignment::getTitle | ( | ) |
Get title.
Definition at line 153 of file class.ilExAssignment.php.
References $title.
Referenced by save(), sendNotification(), and update().
ilExAssignment::getType | ( | ) |
Get type.
Definition at line 216 of file class.ilExAssignment.php.
Referenced by save(), and update().
ilExAssignment::hasReturned | ( | $a_ass_id, | |
$a_user_id | |||
) |
was: hasReturned($a_member_id)
Definition at line 823 of file class.ilExAssignment.php.
References $result, and getTeamMembersByAssignmentId().
ilExAssignment::isValidType | ( | $a_value | ) |
Is given type valid?
int | $a_value |
Definition at line 227 of file class.ilExAssignment.php.
Referenced by setType().
|
staticprivate |
Private lookup.
Definition at line 449 of file class.ilExAssignment.php.
Referenced by lookupTitle(), and lookupType().
|
static |
Check whether exercise has been sent to any student per mail.
Definition at line 1552 of file class.ilExAssignment.php.
Referenced by ilExerciseMemberTableGUI\__construct().
|
static |
Check if assignment is online.
int | $a_ass_id |
Definition at line 432 of file class.ilExAssignment.php.
Referenced by ilObjExerciseSubItemListGUI\isAssignmentVisible().
|
private |
Lookup a field value of ass/member table.
Definition at line 544 of file class.ilExAssignment.php.
Referenced by lookupCommentForUser(), lookupFeedbackTimeOfUser(), lookupMarkOfUser(), lookupNoticeOfUser(), lookupSentTimeOfUser(), lookupStatusFeedbackOfUser(), lookupStatusOfUser(), lookupStatusReturnedOfUser(), lookupStatusSentOfUser(), and lookupStatusTimeOfUser().
ilExAssignment::lookupCommentForUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
Lookup comment for the user.
Definition at line 588 of file class.ilExAssignment.php.
References lookupAssMemberField().
Referenced by ilExerciseXMLWriter\attachMarking(), ilExParticipantTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), and ilExAssignmentGUI\getOverviewBody().
|
static |
Get time when feedback mail has been sent.
Definition at line 782 of file class.ilExAssignment.php.
References ilUtil\getMySQLTimestamp(), and lookupAssMemberField().
Referenced by ilExParticipantTableGUI\fillRow(), and ilExerciseMemberTableGUI\fillRow().
ilExAssignment::lookupMarkOfUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
Lookup user mark.
Definition at line 605 of file class.ilExAssignment.php.
References lookupAssMemberField().
Referenced by ilExerciseXMLWriter\attachMarking(), ilObjExercise\exportGradesExcel(), ilExParticipantTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilExAssignmentGUI\getOverviewBody(), and ilObjExerciseGUI\saveStatusObject().
|
static |
Select the maximum order nr for an exercise.
Definition at line 413 of file class.ilExAssignment.php.
Referenced by save().
|
static |
Check how much files have been uploaded by the learner after the last download of the tutor.
Definition at line 1616 of file class.ilExAssignment.php.
References $ilUser, and getTeamMembersByAssignmentId().
Referenced by ilExParticipantTableGUI\fillRow(), and ilExerciseMemberTableGUI\fillRow().
ilExAssignment::lookupNoticeOfUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
was: getNoticeByMember($a_member_id)
Definition at line 815 of file class.ilExAssignment.php.
References lookupAssMemberField().
Referenced by ilExerciseXMLWriter\attachMarking(), ilExParticipantTableGUI\fillRow(), and ilExerciseMemberTableGUI\fillRow().
|
static |
Get time when exercise has been sent per e-mail to user.
Definition at line 773 of file class.ilExAssignment.php.
References ilUtil\getMySQLTimestamp(), and lookupAssMemberField().
Referenced by ilExerciseMemberTableGUI\fillRow().
ilExAssignment::lookupStatusFeedbackOfUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
was: getStatusFeedbackByMember($a_member_id)
Definition at line 750 of file class.ilExAssignment.php.
References lookupAssMemberField().
ilExAssignment::lookupStatusOfUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
was: getStatusByMember
Definition at line 622 of file class.ilExAssignment.php.
References lookupAssMemberField().
Referenced by ilExerciseXMLWriter\attachMarking(), ilObjExercise\determinStatusOfUser(), ilObjExercise\exportGradesExcel(), ilExParticipantTableGUI\fillRow(), ilExGradesTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilExAssignmentGUI\getOverviewBody(), and ilExAssignmentGUI\getOverviewHeader().
ilExAssignment::lookupStatusReturnedOfUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
was: getStatusReturnedByMember($a_member_id)
Definition at line 713 of file class.ilExAssignment.php.
References lookupAssMemberField().
ilExAssignment::lookupStatusSentOfUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
was: getStatusSentByMember($a_member_id)
Definition at line 676 of file class.ilExAssignment.php.
References lookupAssMemberField().
Referenced by ilExerciseMemberTableGUI\fillRow().
|
static |
Get status time.
Definition at line 791 of file class.ilExAssignment.php.
References ilUtil\getMySQLTimestamp(), and lookupAssMemberField().
Referenced by ilExParticipantTableGUI\fillRow(), and ilExerciseMemberTableGUI\fillRow().
|
static |
Lookup title.
Definition at line 465 of file class.ilExAssignment.php.
References lookup().
Referenced by ilExerciseMemberTableGUI\__construct(), ilPublicSubmissionsTableGUI\__construct(), ilObjExerciseGUI\confirmAssignmentsDeletionObject(), deliverReturnedFiles(), downloadAllDeliveredFiles(), downloadMultipleFiles(), ilObjExerciseGUI\executeCommand(), ilObjExerciseSubItemListGUI\getHTML(), ilExerciseMailNotification\send(), ilObjExercise\sendAssignment(), and ilObjExerciseGUI\setAssignmentHeader().
|
static |
Lookup type.
Definition at line 473 of file class.ilExAssignment.php.
References lookup().
Referenced by ilExerciseMemberTableGUI\__construct(), and downloadAllDeliveredFiles().
|
static |
Check whether student has upload new files after tutor has set the exercise to another than notgraded.
Definition at line 1577 of file class.ilExAssignment.php.
References $lng, and getTeamMembersByAssignmentId().
Referenced by ilExParticipantTableGUI\fillRow(), and ilExerciseMemberTableGUI\fillRow().
ilExAssignment::orderAssByDeadline | ( | $a_ex_id | ) |
Order assignments by deadline date.
Definition at line 503 of file class.ilExAssignment.php.
Referenced by ilObjExerciseGUI\orderAssignmentsByDeadlineObject().
ilExAssignment::read | ( | ) |
Read from db.
Definition at line 240 of file class.ilExAssignment.php.
References setDeadline(), setExerciseId(), setInstruction(), setMandatory(), setOrderNr(), setStartTime(), setTitle(), and setType().
Referenced by __construct().
ilExAssignment::removeTeamMember | ( | $a_team_id, | |
$a_user_id, | |||
$a_exc_ref_id | |||
) |
Remove member from team.
int | $a_team_id | |
int | $a_user_id | |
int | $a_exc_ref_id |
Definition at line 1871 of file class.ilExAssignment.php.
References ilObjUser\_lookupFullname(), getId(), sendNotification(), and writeTeamLog().
ilExAssignment::save | ( | ) |
Save assignment.
Definition at line 263 of file class.ilExAssignment.php.
References createNewAssignmentRecords(), getDeadline(), getExerciseId(), getInstruction(), getMandatory(), getOrderNr(), getStartTime(), getTitle(), getType(), lookupMaxOrderNrForEx(), setId(), and setOrderNr().
ilExAssignment::saveAssOrderOfExercise | ( | $a_ex_id, | |
$a_order | |||
) |
Save ordering of all assignments of an exercise.
Definition at line 481 of file class.ilExAssignment.php.
References $t.
Referenced by ilObjExerciseGUI\saveAssignmentOrderObject().
ilExAssignment::sendNotification | ( | $a_exc_ref_id, | |
$a_user_id, | |||
$a_action | |||
) |
Send notification about team status.
int | $a_exc_ref_id | |
int | $a_user_id | |
string | $a_action |
Definition at line 2018 of file class.ilExAssignment.php.
References $ilUser, $ret, ilLanguageFactory\_getLanguageOfUser(), ilLink\_getStaticLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ilObject\_lookupTitle(), getExerciseId(), ilUserUtil\getNamePresentation(), and getTitle().
Referenced by addTeamMember(), and removeTeamMember().
ilExAssignment::setDeadline | ( | $a_val | ) |
Set deadline (timestamp)
int | deadline (timestamp) |
Definition at line 103 of file class.ilExAssignment.php.
Referenced by read().
ilExAssignment::setExerciseId | ( | $a_val | ) |
Set exercise id.
int | exercise id |
Definition at line 63 of file class.ilExAssignment.php.
Referenced by read().
ilExAssignment::setId | ( | $a_val | ) |
Set assignment id.
int | assignment id |
Definition at line 43 of file class.ilExAssignment.php.
Referenced by __construct(), and save().
ilExAssignment::setInstruction | ( | $a_val | ) |
Set instruction.
string | instruction |
Definition at line 123 of file class.ilExAssignment.php.
Referenced by read().
ilExAssignment::setMandatory | ( | $a_val | ) |
Set mandatory.
int | mandatory |
Definition at line 163 of file class.ilExAssignment.php.
Referenced by read().
ilExAssignment::setOrderNr | ( | $a_val | ) |
Set order nr.
int | order nr |
Definition at line 183 of file class.ilExAssignment.php.
Referenced by read(), and save().
ilExAssignment::setStartTime | ( | $a_val | ) |
Set start time (timestamp)
int | start time (timestamp) |
Definition at line 83 of file class.ilExAssignment.php.
Referenced by read().
ilExAssignment::setTitle | ( | $a_val | ) |
Set title.
string | title |
Definition at line 143 of file class.ilExAssignment.php.
Referenced by read().
ilExAssignment::setType | ( | $a_value | ) |
Set type.
int | $a_value |
Definition at line 203 of file class.ilExAssignment.php.
References isValidType().
Referenced by __construct(), and read().
ilExAssignment::update | ( | ) |
Update.
Definition at line 295 of file class.ilExAssignment.php.
References getDeadline(), getExerciseId(), getId(), getInstruction(), getMandatory(), getOrderNr(), getStartTime(), getTitle(), and getType().
|
private |
Update a field value of ass/member table.
Definition at line 560 of file class.ilExAssignment.php.
Referenced by updateCommentForUser(), updateMarkOfUser(), and updateStatusTimeOfUser().
ilExAssignment::updateCommentForUser | ( | $a_ass_id, | |
$a_user_id, | |||
$a_value | |||
) |
Update comment.
Definition at line 596 of file class.ilExAssignment.php.
References updateAssMemberField().
Referenced by ilObjExerciseGUI\saveStatusObject(), and ilExerciseXMLParser\updateMarking().
ilExAssignment::updateMarkOfUser | ( | $a_ass_id, | |
$a_user_id, | |||
$a_value | |||
) |
Update mark.
Definition at line 613 of file class.ilExAssignment.php.
References updateAssMemberField().
Referenced by ilObjExerciseGUI\saveStatusObject(), and ilExerciseXMLParser\updateMarking().
ilExAssignment::updateNoticeForUser | ( | $a_ass_id, | |
$a_user_id, | |||
$a_notice | |||
) |
was: setNoticeForMember($a_member_id,$a_notice)
Definition at line 1478 of file class.ilExAssignment.php.
References ilUtil\now().
Referenced by ilObjExerciseGUI\saveStatusObject(), and ilExerciseXMLParser\updateMarking().
ilExAssignment::updateStatusFeedbackForUser | ( | $a_ass_id, | |
$a_user_id, | |||
$a_status | |||
) |
was: setStatusFeedbackForMember($a_member_id,$a_status)
Definition at line 758 of file class.ilExAssignment.php.
References ilUtil\now().
Referenced by ilObjExerciseGUI\redirectFeedbackMailObject().
ilExAssignment::updateStatusOfUser | ( | $a_ass_id, | |
$a_user_id, | |||
$a_status | |||
) |
was: setStatusForMember($a_member_id,$a_status)
Definition at line 635 of file class.ilExAssignment.php.
References ilUtil\now(), and ilObjExercise\updateUserStatus().
Referenced by deleteAllDeliveredFilesOfUser(), ilObjExercise\handleSubmission(), ilObjExerciseGUI\saveStatusObject(), and ilExerciseXMLParser\updateMarking().
ilExAssignment::updateStatusReturnedForUser | ( | $a_ass_id, | |
$a_user_id, | |||
$a_status | |||
) |
was: setStatusReturnedForMember($a_member_id,$a_status)
Definition at line 721 of file class.ilExAssignment.php.
References ilUtil\now().
Referenced by ilObjExercise\addResourceObject(), ilObjExerciseGUI\addTeamMemberActionObject(), ilObjExerciseGUI\addTeamMemberContainerActionObject(), ilObjExercise\deleteDeliveredFiles(), ilObjExercise\deliverFile(), and ilObjExerciseGUI\removeTeamMemberObject().
ilExAssignment::updateStatusSentForUser | ( | $a_ass_id, | |
$a_user_id, | |||
$a_status | |||
) |
was: setStatusSentForMember($a_member_id,$a_status)
Definition at line 684 of file class.ilExAssignment.php.
References ilUtil\now().
Referenced by ilObjExercise\sendAssignment().
ilExAssignment::updateStatusTimeOfUser | ( | $a_ass_id, | |
$a_user_id | |||
) |
was: updateStatusTimeForMember($a_user_id)
Definition at line 653 of file class.ilExAssignment.php.
References ilUtil\now(), and updateAssMemberField().
Referenced by ilObjExerciseGUI\saveStatusObject().
ilExAssignment::updateTutorDownloadTime | ( | $a_exc_id, | |
$a_ass_id, | |||
$a_user_id | |||
) |
was: updateTutorDownloadTime($member_id)
Definition at line 1149 of file class.ilExAssignment.php.
References $ilUser, and ilUtil\now().
Referenced by deliverReturnedFiles(), and ilObjExerciseGUI\downloadAllObject().
ilExAssignment::uploadAssignmentFiles | ( | $a_files | ) |
Upload assignment files (from creation form)
Definition at line 1741 of file class.ilExAssignment.php.
References getExerciseId(), and getId().
|
static |
Add entry to team log.
int | $a_team_id | |
int | $a_action | |
string | $a_details |
Definition at line 1973 of file class.ilExAssignment.php.
References $ilUser.
Referenced by addTeamMember(), deleteDeliveredFiles(), ilObjExercise\deliverFile(), getTeamId(), and removeTeamMember().
const ilExAssignment::TEAM_LOG_ADD_FILE = 4 |
Definition at line 21 of file class.ilExAssignment.php.
Referenced by ilObjExercise\deliverFile(), and ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignment::TEAM_LOG_ADD_MEMBER = 2 |
Definition at line 19 of file class.ilExAssignment.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignment::TEAM_LOG_CREATE_TEAM = 1 |
Definition at line 18 of file class.ilExAssignment.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignment::TEAM_LOG_REMOVE_FILE = 5 |
Definition at line 22 of file class.ilExAssignment.php.
Referenced by deleteDeliveredFiles(), and ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignment::TEAM_LOG_REMOVE_MEMBER = 3 |
Definition at line 20 of file class.ilExAssignment.php.
Referenced by ilExAssignmentTeamLogTableGUI\getItems().
const ilExAssignment::TYPE_BLOG = 2 |
Definition at line 14 of file class.ilExAssignment.php.
Referenced by ilAssignmentsTableGUI\__construct(), downloadAllDeliveredFiles(), downloadSelectedFiles(), ilExerciseMemberTableGUI\fillRow(), ilExAssignmentGUI\getOverviewBody(), and ilObjExerciseGUI\initAssignmentForm().
const ilExAssignment::TYPE_PORTFOLIO = 3 |
Definition at line 15 of file class.ilExAssignment.php.
Referenced by ilAssignmentsTableGUI\__construct(), downloadAllDeliveredFiles(), downloadSelectedFiles(), ilExerciseMemberTableGUI\fillRow(), ilExAssignmentGUI\getOverviewBody(), and ilObjExerciseGUI\initAssignmentForm().
const ilExAssignment::TYPE_UPLOAD = 1 |
Definition at line 13 of file class.ilExAssignment.php.
Referenced by ilAssignmentsTableGUI\__construct(), ilExerciseMemberTableGUI\fillRow(), ilExAssignmentGUI\getOverviewBody(), and ilObjExerciseGUI\initAssignmentForm().
const ilExAssignment::TYPE_UPLOAD_TEAM = 4 |
Definition at line 16 of file class.ilExAssignment.php.
Referenced by ilExcDeliveredFilesTableGUI\__construct(), ilAssignmentsTableGUI\__construct(), ilExerciseMemberTableGUI\__construct(), ilObjExerciseGUI\addMembersObject(), ilObjExerciseGUI\confirmDeassignMembersObject(), deleteAllDeliveredFilesOfUser(), ilObjExerciseGUI\downloadFeedbackFileObject(), ilObjExerciseGUI\executeCommand(), ilExcDeliveredFilesTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilExAssignmentGUI\getOverviewBody(), ilObjExerciseGUI\initAssignmentForm(), ilObjExerciseGUI\initTeamSubmission(), ilObjExerciseGUI\redirectFeedbackMailObject(), ilObjExerciseGUI\saveStatusObject(), and ilObjExerciseGUI\sendMembersObject().