| ILIAS
    release_6 Revision v6.24-5-g0c8bfefb3b8
    | 
Exercise submission //TODO: This class has to much static methods related to delivered "files". More...
 Collaboration diagram for ilExSubmission:
 Collaboration diagram for ilExSubmission:| Public Member Functions | |
| __construct (ilExAssignment $a_ass, $a_user_id, ilExAssignmentTeam $a_team=null, $a_is_tutor=false, $a_public_submissions=false) | |
| getSubmissionType () | |
| getAssignment () | |
| getTeam () | |
| getPeerReview () | |
| validatePeerReviews () | |
| getUserId () | |
| getUserIds () | |
| getFeedbackId () | |
| hasSubmitted () | |
| getSelectedObject () | |
| canSubmit () | |
| canView () | |
| isTutor () | |
| hasNoTeamYet () | |
| isInTeam ($a_user_id=null) | |
| isOwner () | |
| hasPeerReviewAccess () | |
| canAddFile () | |
| uploadFile ($a_http_post_files, $unzip=false) | |
| Save submitted file of user.  More... | |
| processUploadedZipFile ($fileTmp) | |
| processes errorhandling etc for uploaded archive  More... | |
| getFiles (array $a_file_ids=null, $a_only_valid=false, $a_min_timestamp=null) | |
| Get submission items (not only files)  More... | |
| lookupNewFiles ($a_tutor=null) | |
| Check how much files have been uploaded by the learner after the last download of the tutor.  More... | |
| deleteAllFiles () | |
| deleteSelectedFiles (array $file_id_array) | |
| Deletes already delivered files.  More... | |
| downloadFiles (array $a_file_ids=null, $a_only_new=false, $a_peer_review_mask_filename=false) | |
| updateTutorDownloadTime () | |
| getTableUserWhere ($a_team_mode=false) | |
| Get user/team where clause.  More... | |
| getLastSubmission () | |
| TODO -> get rid of getTableUserWhere and move to repository class Get the date of the last submission of a user for the assignment.  More... | |
| getLastOpeningHTMLView () | |
| TODO -> get rid of getTableUserWhere and move to repository class Get a mysql timestamp from the last HTML view opening.  More... | |
| addResourceObject ($a_wsp_id, $a_text=null) | |
| Add personal resource or repository object (ref_id) to assigment.  More... | |
| deleteResourceObject ($a_returned_id) | |
| Remove personal resource to assigment.  More... | |
| updateTextSubmission ($a_text) | |
| Handle text assignment submissions.  More... | |
| getDownloadedFilesInfoForTableGUIS ($a_parent_obj, $a_parent_cmd=null) | |
| Static Public Member Functions | |
| static | getAllAssignmentFiles ($a_exc_id, $a_ass_id) | 
| static | getAssignmentFilesByUsers (int $a_exc_id, int $a_ass_id, array $a_users) | 
| static | lookupExerciseIdForReturnedId ($a_returned_id) | 
| Get exercise from submission id (used in ilObjMediaObject)  More... | |
| static | findUserFiles ($a_user_id, $a_filetitle) | 
| Check if given file was assigned.  More... | |
| static | deleteUser ($a_exc_id, $a_user_id) | 
| Delete all delivered files of user.  More... | |
| static | downloadAllAssignmentFiles (ilExAssignment $a_ass, array $members, $to_path) | 
| Download all submitted files of an assignment (all user)  More... | |
| static | getSubmissionsForFilename ($a_filename, $a_assignment_types=array()) | 
| Get assignment return entries for a filename.  More... | |
| static | getDirectoryNameFromUserData ($a_user_id) | 
| static | getAssignmentParticipants (int $a_exercise_id, int $a_ass_id) | 
| Data Fields | |
| const | TYPE_FILE = "File" | 
| const | TYPE_OBJECT = "Object" | 
| const | TYPE_TEXT = "Text" | 
| const | TYPE_REPO_OBJECT = "RepoObject" | 
| Protected Member Functions | |
| isLate () | |
| initStorage () | |
| getStorageId () | |
| Get storage id.  More... | |
| getLastDownloadTime (array $a_user_ids) | |
| downloadSingleFile ($a_user_id, $filename, $filetitle, $a_team_id) | |
| downloadMultipleFiles ($a_filenames, $a_user_id, $a_multi_user=false) | |
| Protected Attributes | |
| $user | |
| $db | |
| $lng | |
| $ctrl | |
| $assignment | |
| $user_id | |
| $team | |
| $peer_review | |
| $is_tutor | |
| $public_submissions | |
| $ass_type | |
| $ass_types | |
Exercise submission //TODO: This class has to much static methods related to delivered "files".
Extract them to classes.
Definition at line 11 of file class.ilExSubmission.php.
| ilExSubmission::__construct | ( | ilExAssignment | $a_ass, | 
| $a_user_id, | |||
| ilExAssignmentTeam | $a_team = null, | ||
| $a_is_tutor = false, | |||
| $a_public_submissions = false | |||
| ) | 
Definition at line 55 of file class.ilExSubmission.php.
References $DIC, $ilUser, ilExAssignment\getAssignmentType(), ilExAssignment\getId(), ilExAssignmentTypes\getInstance(), ilExcAssMemberState\getInstanceByIds(), ilExAssignmentTeam\getInstanceByUserId(), ilExAssignment\hasTeam(), and user().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilExSubmission::addResourceObject | ( | $a_wsp_id, | |
| $a_text = null | |||
| ) | 
Add personal resource or repository object (ref_id) to assigment.
| int | $a_wsp_id | |
| string | $a_text | 
| ilExerciseException | 
Definition at line 1224 of file class.ilExSubmission.php.
References $db, $ilDB, $query, $user_id, getAssignment(), getSubmissionsForFilename(), getSubmissionType(), getTeam(), getUserId(), ilUtil\now(), and TYPE_REPO_OBJECT.
Referenced by updateTextSubmission().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::canAddFile | ( | ) | 
Definition at line 252 of file class.ilExSubmission.php.
References canSubmit(), getAssignment(), and getFiles().
Referenced by uploadFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::canSubmit | ( | ) | 
Definition at line 185 of file class.ilExSubmission.php.
References isOwner().
Referenced by canAddFile(), canView(), ilExSubmissionFileGUI\getOverviewContent(), ilExSubmissionTextGUI\getOverviewContent(), ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::canView | ( | ) | 
Definition at line 191 of file class.ilExSubmission.php.
References $ilUser, $user, canSubmit(), isInTeam(), and isTutor().
Referenced by ilExSubmissionGUI\getOverviewContent().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::deleteAllFiles | ( | ) | 
Definition at line 616 of file class.ilExSubmission.php.
References deleteSelectedFiles(), and getFiles().
Referenced by updateTextSubmission().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::deleteResourceObject | ( | $a_returned_id | ) | 
Remove personal resource to assigment.
| int | $a_returned_id | 
Definition at line 1273 of file class.ilExSubmission.php.
Referenced by ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::deleteSelectedFiles | ( | array | $file_id_array | ) | 
Deletes already delivered files.
| array | $file_id_array | An array containing database ids of the delivered files | 
| numeric | $user_id | The database id of the user @access public | 
Definition at line 633 of file class.ilExSubmission.php.
References $db, $filename, $ilDB, $result, getAssignment(), getTableUserWhere(), initStorage(), and ilExAssignmentTeam\TEAM_LOG_REMOVE_FILE.
Referenced by deleteAllFiles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Delete all delivered files of user.
| int | $a_exc_id | excercise id | 
| int | $a_user_id | user id | 
Definition at line 695 of file class.ilExSubmission.php.
References $team, and ilExAssignment\getInstancesByExercise().
Referenced by ilExerciseMembers\deassignMember().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Download all submitted files of an assignment (all user)
| $a_ass | ilExAssignment | 
| $members | array of user names, key is user id | 
| $to_path | string | 
| ilExerciseException | 
Definition at line 972 of file class.ilExSubmission.php.
References $ass_type, $DIC, $lng, $user, ilObject\_lookupObjId(), ilObject\_lookupType(), ilUtil\delDir(), ilUtil\dirsize(), ilUtil\escapeShellArg(), ilUtil\getASCIIFilename(), ilExAssignmentTeam\getAssignmentTeamMap(), ilExAssignment\getAssignmentType(), getDirectoryNameFromUserData(), ilExAssignment\getExerciseId(), ilExAssignment\getId(), ilExAssignment\getType(), ilExAssignment\hasTeam(), ilUtil\makeDir(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, and ilUtil\unzip().
Referenced by ilExerciseManagementCollectFilesJob\collectSubmissionFiles(), and ilExerciseManagementGUI\downloadAllObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::downloadFiles | ( | array | $a_file_ids = null, | 
| $a_only_new = false, | |||
| $a_peer_review_mask_filename = false | |||
| ) | 
Definition at line 728 of file class.ilExSubmission.php.
References $ilUser, $lng, $user, ilObjUser\_lookupName(), ilObject\_lookupTitle(), downloadMultipleFiles(), downloadSingleFile(), getFiles(), getLastDownloadTime(), getTeam(), getUserId(), getUserIds(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_WIKI_TEAM, and updateTutorDownloadTime().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 875 of file class.ilExSubmission.php.
References $filename, $lng, ilObjUser\_lookupName(), ilUtil\delDir(), ilUtil\deliverFile(), ilUtil\escapeShellArg(), exit, ilUtil\getASCIIFilename(), ilUtil\ilTempnam(), initStorage(), ilExAssignment\lookupTitle(), and ilUtil\makeDir().
Referenced by downloadFiles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 861 of file class.ilExSubmission.php.
References $filename, ilUtil\deliverFile(), and initStorage().
Referenced by downloadFiles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Check if given file was assigned.
Used in Blog/Portfolio
| int | $a_user_id | |
| string | $a_filetitle | 
Definition at line 599 of file class.ilExSubmission.php.
References $DIC, $ilDB, and $res.
Referenced by ilBlogExercise\getAssignmentsOfBlog(), and ilPortfolioExercise\getAssignmentsOfPortfolio().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 408 of file class.ilExSubmission.php.
References $ass_type, $DIC, $ilDB, $query, $res, ilExAssignmentTypes\getInstance(), and ilExAssignment\lookupType().
Referenced by ilExAssignmentListTextTableGUI\parse(), and ilExAssignment\recalculateLateSubmissions().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getAssignment | ( | ) | 
Definition at line 110 of file class.ilExSubmission.php.
References $assignment.
Referenced by ilExSubmissionBaseGUI\__construct(), ilExSubmissionTeamGUI\__construct(), addResourceObject(), canAddFile(), deleteSelectedFiles(), getFiles(), getLastDownloadTime(), ilExPeerReviewGUI\getOverviewContent(), ilExSubmissionObjectGUI\getOverviewContent(), ilExSubmissionTeamGUI\getOverviewContent(), ilExSubmissionGUI\getOverviewContent(), getTableUserWhere(), and lookupNewFiles().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 438 of file class.ilExSubmission.php.
References $ass_type, $DIC, $ilDB, $query, $res, ilExAssignmentTypes\getInstance(), and ilExAssignment\lookupType().
Referenced by ilExerciseManagementGUI\listTextAssignmentObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| $a_exercise_id | |
| $a_ass_id | 
Definition at line 1540 of file class.ilExSubmission.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilExerciseManagementGUI\listTextAssignmentObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 1522 of file class.ilExSubmission.php.
References ilObjUser\_lookupName(), and ilUtil\getASCIIFilename().
Referenced by ilExerciseManagementCollectFilesJob\addLink(), ilExerciseManagementCollectFilesJob\createTargetDirectory(), downloadAllAssignmentFiles(), ilExerciseManagementCollectFilesJob\getFeedbackDirectory(), ilDownloadSubmissionsBackgroundTask\run(), and ilExerciseManagementCollectFilesJob\run().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getDownloadedFilesInfoForTableGUIS | ( | $a_parent_obj, | |
| $a_parent_cmd = null | |||
| ) | 
Definition at line 1324 of file class.ilExSubmission.php.
References $ctrl, $ilCtrl, $lng, $result, ilDatePresentation\formatDate(), getFiles(), getLastSubmission(), getUserId(), IL_CAL_DATETIME, lookupNewFiles(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, ilExAssignment\TYPE_UPLOAD_TEAM, and ilExAssignment\TYPE_WIKI_TEAM.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilExSubmission::getFeedbackId | ( | ) | 
Definition at line 163 of file class.ilExSubmission.php.
References getUserId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilExSubmission::getFiles | ( | array | $a_file_ids = null, | 
| $a_only_valid = false, | |||
| $a_min_timestamp = null | |||
| ) | 
Get submission items (not only files)
| array | null | $a_file_ids | |
| bool | $a_only_valid | |
| null | $a_min_timestamp | 
Definition at line 477 of file class.ilExSubmission.php.
References $db, $ilDB, $result, getAssignment(), getTableUserWhere(), and initStorage().
Referenced by canAddFile(), deleteAllFiles(), downloadFiles(), getDownloadedFilesInfoForTableGUIS(), ilExPeerReviewGUI\getLateSubmissionInfo(), ilExSubmissionFileGUI\getOverviewContent(), getSelectedObject(), ilExPeerReviewGUI\getSubmissionContent(), ilExerciseManagementGUI\getSubmissionZipFilePath(), hasSubmitted(), processUploadedZipFile(), and updateTextSubmission().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 714 of file class.ilExSubmission.php.
References $db, $ilDB, $ilUser, $user, and getAssignment().
Referenced by downloadFiles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getLastOpeningHTMLView | ( | ) | 
TODO -> get rid of getTableUserWhere and move to repository class Get a mysql timestamp from the last HTML view opening.
Definition at line 1193 of file class.ilExSubmission.php.
References $data, $res, ilUtil\getMySQLTimestamp(), and getTableUserWhere().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilExSubmission::getLastSubmission | ( | ) | 
TODO -> get rid of getTableUserWhere and move to repository class Get the date of the last submission of a user for the assignment.
Definition at line 1172 of file class.ilExSubmission.php.
References $db, $ilDB, ilUtil\getMySQLTimestamp(), and getTableUserWhere().
Referenced by getDownloadedFilesInfoForTableGUIS(), and ilExSubmissionTeamGUI\getOverviewContent().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getPeerReview | ( | ) | 
Definition at line 126 of file class.ilExSubmission.php.
References $peer_review.
Referenced by ilExPeerReviewGUI\getOverviewContent().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getSelectedObject | ( | ) | 
Definition at line 177 of file class.ilExSubmission.php.
References getFiles().
Referenced by ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Get storage id.
Definition at line 289 of file class.ilExSubmission.php.
References getTeam(), and getUserId().
Referenced by uploadFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get assignment return entries for a filename.
| string | $a_filename | |
| int[] | $a_assignment_types | 
Definition at line 1494 of file class.ilExSubmission.php.
References $db, $DIC, and $query.
Referenced by addResourceObject(), ilExcRepoObjAssignmentInfo\getInfo(), and ilObjWikiListGUI\getProperties().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getSubmissionType | ( | ) | 
Definition at line 88 of file class.ilExSubmission.php.
Referenced by addResourceObject(), and ilExSubmissionGUI\getOverviewContent().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getTableUserWhere | ( | $a_team_mode = false | ) | 
Get user/team where clause.
return
Definition at line 1148 of file class.ilExSubmission.php.
References $db, $ilDB, getAssignment(), getTeam(), getUserId(), and getUserIds().
Referenced by deleteSelectedFiles(), getFiles(), getLastOpeningHTMLView(), getLastSubmission(), and lookupNewFiles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getTeam | ( | ) | 
Definition at line 118 of file class.ilExSubmission.php.
References $team.
Referenced by addResourceObject(), downloadFiles(), ilExSubmissionTeamGUI\getOverviewContent(), getStorageId(), getTableUserWhere(), ilExAssTypeWikiTeamGUI\renderOverviewContent(), and uploadFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getUserId | ( | ) | 
Definition at line 147 of file class.ilExSubmission.php.
References $user_id.
Referenced by addResourceObject(), downloadFiles(), getDownloadedFilesInfoForTableGUIS(), getFeedbackId(), ilExPeerReviewGUI\getOverviewContent(), ilExSubmissionTeamGUI\getOverviewContent(), ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), getStorageId(), getTableUserWhere(), and uploadFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::getUserIds | ( | ) | 
Definition at line 152 of file class.ilExSubmission.php.
References hasNoTeamYet().
Referenced by downloadFiles(), getTableUserWhere(), ilExAssTypeWikiTeam\handleNewUpload(), isInTeam(), updateTutorDownloadTime(), and validatePeerReviews().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::hasNoTeamYet | ( | ) | 
Definition at line 220 of file class.ilExSubmission.php.
Referenced by ilExSubmissionFileGUI\getOverviewContent(), and getUserIds().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::hasPeerReviewAccess | ( | ) | 
Definition at line 246 of file class.ilExSubmission.php.
| ilExSubmission::hasSubmitted | ( | ) | 
Definition at line 172 of file class.ilExSubmission.php.
References getFiles().
Referenced by ilExSubmissionTeamGUI\getOverviewContent(), ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), ilExAssTypeWikiTeam\handleNewUpload(), ilExcAssMemberState\isGlobalFeedbackFileAccessible(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 279 of file class.ilExSubmission.php.
Referenced by deleteSelectedFiles(), downloadMultipleFiles(), downloadSingleFile(), getFiles(), and uploadFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::isInTeam | ( | $a_user_id = null | ) | 
Definition at line 229 of file class.ilExSubmission.php.
References $ilUser, $user, and getUserIds().
Referenced by canView().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 272 of file class.ilExSubmission.php.
| ilExSubmission::isOwner | ( | ) | 
Definition at line 239 of file class.ilExSubmission.php.
References $ilUser, and $user.
Referenced by canSubmit().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::isTutor | ( | ) | 
Definition at line 215 of file class.ilExSubmission.php.
References $is_tutor.
Referenced by canView().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get exercise from submission id (used in ilObjMediaObject)
| int | $a_returned_id | 
Definition at line 578 of file class.ilExSubmission.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::lookupNewFiles | ( | $a_tutor = null | ) | 
Check how much files have been uploaded by the learner after the last download of the tutor.
| tutor | integer | 
Definition at line 542 of file class.ilExSubmission.php.
References $db, $ilDB, $ilUser, $user, getAssignment(), and getTableUserWhere().
Referenced by getDownloadedFilesInfoForTableGUIS().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::processUploadedZipFile | ( | $fileTmp | ) | 
processes errorhandling etc for uploaded archive
| string | $tmpFile | path and filename to uploaded file | 
Definition at line 360 of file class.ilExSubmission.php.
References Vendor\Package\$e, $filename, $lng, $success, ilUtil\delDir(), getFiles(), ilUtil\ilTempnam(), ilUtil\makeDir(), ilFileUtils\processZipFile(), ilFileUtils\recursive_dirscan(), ilUtil\sendFailure(), uploadFile(), and ilFileUtils\utf8_encode().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilExSubmission::updateTextSubmission | ( | $a_text | ) | 
Handle text assignment submissions.
| string | $a_text | 
Definition at line 1290 of file class.ilExSubmission.php.
References $db, $ilDB, addResourceObject(), deleteAllFiles(), getFiles(), and ilUtil\now().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilExSubmission::updateTutorDownloadTime | ( | ) | 
Definition at line 836 of file class.ilExSubmission.php.
References $db, $ilDB, $ilUser, $user, $user_id, getUserIds(), and ilUtil\now().
Referenced by downloadFiles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::uploadFile | ( | $a_http_post_files, | |
| $unzip = false | |||
| ) | 
Save submitted file of user.
Definition at line 303 of file class.ilExSubmission.php.
References $db, $ilDB, $query, $user_id, canAddFile(), getStorageId(), getTeam(), getUserId(), ilFileUtils\getValidFilename(), initStorage(), ilUtil\now(), and ilExAssignmentTeam\TEAM_LOG_ADD_FILE.
Referenced by processUploadedZipFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExSubmission::validatePeerReviews | ( | ) | 
Definition at line 131 of file class.ilExSubmission.php.
References $res, $user_id, $valid, and getUserIds().
Referenced by ilExAssTypeWikiTeam\handleNewUpload().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 48 of file class.ilExSubmission.php.
Referenced by downloadAllAssignmentFiles(), getAllAssignmentFiles(), and getAssignmentFilesByUsers().
| 
 | protected | 
Definition at line 53 of file class.ilExSubmission.php.
| 
 | protected | 
Definition at line 38 of file class.ilExSubmission.php.
Referenced by getAssignment().
| 
 | protected | 
Definition at line 36 of file class.ilExSubmission.php.
Referenced by getDownloadedFilesInfoForTableGUIS().
| 
 | protected | 
Definition at line 26 of file class.ilExSubmission.php.
Referenced by addResourceObject(), deleteResourceObject(), deleteSelectedFiles(), getFiles(), getLastDownloadTime(), getLastSubmission(), getSubmissionsForFilename(), getTableUserWhere(), lookupNewFiles(), updateTextSubmission(), updateTutorDownloadTime(), and uploadFile().
| 
 | protected | 
Definition at line 42 of file class.ilExSubmission.php.
Referenced by isTutor().
| 
 | protected | 
Definition at line 31 of file class.ilExSubmission.php.
Referenced by downloadAllAssignmentFiles(), downloadFiles(), downloadMultipleFiles(), getDownloadedFilesInfoForTableGUIS(), and processUploadedZipFile().
| 
 | protected | 
Definition at line 41 of file class.ilExSubmission.php.
Referenced by getPeerReview().
| 
 | protected | 
Definition at line 43 of file class.ilExSubmission.php.
| 
 | protected | 
Definition at line 40 of file class.ilExSubmission.php.
Referenced by deleteUser(), and getTeam().
| 
 | protected | 
Definition at line 21 of file class.ilExSubmission.php.
Referenced by canView(), downloadAllAssignmentFiles(), downloadFiles(), getLastDownloadTime(), isInTeam(), isOwner(), lookupNewFiles(), and updateTutorDownloadTime().
| 
 | protected | 
Definition at line 39 of file class.ilExSubmission.php.
Referenced by addResourceObject(), getUserId(), updateTutorDownloadTime(), uploadFile(), and validatePeerReviews().
| const ilExSubmission::TYPE_FILE = "File" | 
Definition at line 13 of file class.ilExSubmission.php.
Referenced by ilExAssTypeUpload\getSubmissionType(), and ilExAssTypeUploadTeam\getSubmissionType().
| const ilExSubmission::TYPE_OBJECT = "Object" | 
Definition at line 14 of file class.ilExSubmission.php.
Referenced by ilExAssTypeBlog\getSubmissionType(), and ilExAssTypePortfolio\getSubmissionType().
| const ilExSubmission::TYPE_REPO_OBJECT = "RepoObject" | 
Definition at line 16 of file class.ilExSubmission.php.
Referenced by addResourceObject(), ilExSubmissionGUI\executeCommand(), ilExcRepoObjAssignmentInfo\getInfo(), ilExSubmissionGUI\getOverviewContent(), and ilExAssTypeWikiTeam\getSubmissionType().
| const ilExSubmission::TYPE_TEXT = "Text" | 
Definition at line 15 of file class.ilExSubmission.php.
Referenced by ilExAssTypeText\getSubmissionType().