|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilExSubmission:Public Member Functions | |
| __construct (ilExAssignment $a_ass, int $a_user_id, ilExAssignmentTeam $a_team=null, bool $a_is_tutor=false, bool $a_public_submissions=false) | |
| getSubmissionType () | |
| getAssignment () | |
| getTeam () | |
| getPeerReview () | |
| validatePeerReviews () | |
| getUserId () | |
| getUserIds () | |
| getFeedbackId () | |
| used for the legacy storage path of feedbacks only More... | |
| hasSubmitted () | |
| hasSubmittedPrintVersion () | |
| getSubmittedPrintFile () | |
| getSelectedObject () | |
| canSubmit () | |
| canView () | |
| isTutor () | |
| hasNoTeamYet () | |
| isInTeam (int $a_user_id=null) | |
| isOwner () | |
| hasPeerReviewAccess () | |
| canAddFile () | |
| uploadFile (array $a_http_post_files, bool $unzip=false) | |
| Save submitted file of user. More... | |
| addFileUpload (\ILIAS\FileUpload\DTO\UploadResult $result) | |
| processUploadedZipFile (string $fileTmp) | |
| processes error handling etc for uploaded archive More... | |
| getFiles (array $a_file_ids=null, bool $a_only_valid=false, string $a_min_timestamp=null, bool $print_versions=false) | |
| Get submission items (not only files) More... | |
| lookupNewFiles (int $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, bool $a_only_new=false, bool $a_peer_review_mask_filename=false) | |
| updateTutorDownloadTime () | |
| getTableUserWhere (bool $a_team_mode=false) | |
| 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 (string $a_wsp_id, string $a_text=null) | |
| Add personal resource or repository object (ref_id) to assigment. More... | |
| deleteResourceObject () | |
| updateTextSubmission (string $a_text) | |
| Handle text assignment submissions. More... | |
| getDownloadedFilesInfoForTableGUIS () | |
Static Public Member Functions | |
| static | getAllAssignmentFiles (int $a_exc_id, int $a_ass_id) |
| static | getAssignmentFilesByUsers (int $a_exc_id, int $a_ass_id, array $a_users) |
| static | lookupExerciseIdForReturnedId (int $a_returned_id) |
| Get exercise from submission id (used in ilObjMediaObject) More... | |
| static | findUserFiles (int $a_user_id, string $a_filetitle) |
| Check if given file was assigned Used in Blog/Portfolio. More... | |
| static | deleteUser (int $a_exc_id, int $a_user_id) |
| Delete all delivered files of user. More... | |
| static | downloadAllAssignmentFiles (ilExAssignment $a_ass, array $members, string $to_path) |
| Download all submitted files of an assignment (all user) More... | |
| static | getSubmissionsForFilename (string $a_filename, array $a_assignment_types=array()) |
| Get assignment return entries for a filename. More... | |
| static | getDirectoryNameFromUserData (int $a_user_id) |
| static | getAssignmentParticipants (int $a_exercise_id, int $a_ass_id) |
| static | processZipFile (string $a_directory, string $a_file, bool $structure) |
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 () | |
| getLastDownloadTime (array $a_user_ids) | |
| downloadSingleFile (int $a_user_id, string $filename, string $filetitle, int $a_team_id=0) | |
| downloadMultipleFiles (array $a_filenames, ?int $a_user_id, bool $a_multi_user=false) | |
Protected Attributes | |
| ILIAS Exercise InternalDomainService | $domain |
| ilObjUser | $user |
| ilDBInterface | $db |
| ilLanguage | $lng |
| ilCtrl | $ctrl |
| ilExAssignment | $assignment |
| int | $user_id |
| ilExAssignmentTeam | $team = null |
| ilExPeerReview | $peer_review = null |
| bool | $is_tutor |
| bool | $public_submissions |
| ilExAssignmentTypeInterface | $ass_type |
| ilExAssignmentTypes | $ass_types |
| ilExcAssMemberState | $state |
Private Attributes | |
| ilGlobalTemplateInterface | $main_tpl |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Exercise submission //TODO: This class has many static methods related to delivered "files". Extract them to classes.
Definition at line 26 of file class.ilExSubmission.php.
| ilExSubmission::__construct | ( | ilExAssignment | $a_ass, |
| int | $a_user_id, | ||
| ilExAssignmentTeam | $a_team = null, |
||
| bool | $a_is_tutor = false, |
||
| bool | $a_public_submissions = false |
||
| ) |
Definition at line 49 of file class.ilExSubmission.php.
References $DIC, $user_id, ILIAS\Repository\ctrl(), ilExAssignment\getAssignmentType(), ilExAssignment\getId(), ilExAssignmentTypes\getInstance(), ilExcAssMemberState\getInstanceByIds(), ilExAssignmentTeam\getInstanceByUserId(), ilExAssignment\hasTeam(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilExSubmission::addFileUpload | ( | \ILIAS\FileUpload\DTO\UploadResult | $result | ) |
Definition at line 360 of file class.ilExSubmission.php.
References $db, $ilDB, canAddFile(), getStorageId(), getTeam(), getUserId(), ilFileUtils\getValidFilename(), initStorage(), ilUtil\now(), and ilExAssignmentTeam\TEAM_LOG_ADD_FILE.
Here is the call graph for this function:| ilExSubmission::addResourceObject | ( | string | $a_wsp_id, |
| string | $a_text = null |
||
| ) |
Add personal resource or repository object (ref_id) to assigment.
Definition at line 1341 of file class.ilExSubmission.php.
References $db, $ilDB, getAssignment(), getSubmissionsForFilename(), getSubmissionType(), getTeam(), getUserId(), isLate(), ilUtil\now(), and TYPE_REPO_OBJECT.
Referenced by ilObjPortfolioGUI\linkPortfolioToAssignment(), and updateTextSubmission().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::canAddFile | ( | ) |
Definition at line 258 of file class.ilExSubmission.php.
References canSubmit(), getAssignment(), and getFiles().
Referenced by addFileUpload(), and uploadFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::canSubmit | ( | ) |
Definition at line 191 of file class.ilExSubmission.php.
References isOwner().
Referenced by canAddFile(), canView(), ilExSubmissionTextGUI\getOverviewContent(), ilExSubmissionFileGUI\getOverviewContent(), ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::canView | ( | ) |
Definition at line 197 of file class.ilExSubmission.php.
References $user, canSubmit(), isInTeam(), and isTutor().
Referenced by ilExSubmissionGUI\executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::deleteAllFiles | ( | ) |
Definition at line 700 of file class.ilExSubmission.php.
References deleteSelectedFiles(), and getFiles().
Referenced by deleteResourceObject(), and updateTextSubmission().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::deleteResourceObject | ( | ) |
Definition at line 1391 of file class.ilExSubmission.php.
References deleteAllFiles().
Referenced by ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the call 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 |
Definition at line 720 of file class.ilExSubmission.php.
References $db, $filename, $ilDB, $path, getAssignment(), getTableUserWhere(), initStorage(), and ilExAssignmentTeam\TEAM_LOG_REMOVE_FILE.
Referenced by deleteAllFiles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Delete all delivered files of user.
| ilExcUnknownAssignmentTypeException |
Definition at line 781 of file class.ilExSubmission.php.
References $DIC, ilExAssignment\getInstancesByExercise(), ilDBInterface\manipulateF(), and ilExAssignmentTeam\removeTeamMember().
Referenced by ilExerciseMembers\deassignMember(), and ILIAS\Exercise\User\UserEvent\handleDeletion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Download all submitted files of an assignment (all user)
| ilExerciseException |
Definition at line 1086 of file class.ilExSubmission.php.
References $DIC, $id, $log, ilObject\_lookupObjId(), ilObject\_lookupType(), ilFSStorageExercise\create(), ilFileUtils\delDir(), ilFileUtils\dirsize(), ilShellUtil\escapeShellArg(), ilFileUtils\getASCIIFilename(), ilExAssignmentTeam\getAssignmentTeamMap(), ilExAssignment\getAssignmentType(), ilExAssignment\getExerciseId(), ilExAssignment\getId(), ilLoggerFactory\getLogger(), ilExAssignment\getType(), ilExAssignment\hasTeam(), ilFileUtils\makeDir(), ilLanguage\txt(), ilExAssignment\TYPE_BLOG, and ilExAssignment\TYPE_PORTFOLIO.
Referenced by ilExerciseManagementCollectFilesJob\createSubmissionsDirectory(), and ilExerciseManagementGUI\redirectFeedbackMailObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::downloadFiles | ( | array | $a_file_ids = null, |
| bool | $a_only_new = false, |
||
| bool | $a_peer_review_mask_filename = false |
||
| ) |
Definition at line 833 of file class.ilExSubmission.php.
References $lng, $user, ilObjUser\_lookupName(), ilObject\_lookupTitle(), downloadMultipleFiles(), downloadSingleFile(), getFiles(), getLastDownloadTime(), getTeam(), getUserId(), getUserIds(), ilLanguage\txt(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_WIKI_TEAM, and updateTutorDownloadTime().
Here is the call graph for this function:
|
protected |
Definition at line 987 of file class.ilExSubmission.php.
References $filename, $lng, $path, ilObjUser\_lookupName(), ilFileUtils\delDir(), ilFileDelivery\deliverFileLegacy(), ilShellUtil\escapeShellArg(), exit, ilFileUtils\getASCIIFilename(), ilFileUtils\ilTempnam(), initStorage(), ILIAS\Repository\int(), ilExAssignment\lookupTitle(), ilFileUtils\makeDir(), and ilLanguage\txt().
Referenced by downloadFiles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 969 of file class.ilExSubmission.php.
References ilFileDelivery\deliverFileLegacy(), and initStorage().
Referenced by downloadFiles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if given file was assigned Used in Blog/Portfolio.
Definition at line 681 of file class.ilExSubmission.php.
References $DIC, $ilDB, and $res.
Referenced by ILIAS\Blog\Exercise\BlogExercise\getAssignmentsOfBlog(), and ilPortfolioExercise\getAssignmentsOfPortfolio().
Here is the caller graph for this function:
|
static |
| ilExcUnknownAssignmentTypeException |
Definition at line 470 of file class.ilExSubmission.php.
References $DIC, $ilDB, $path, $res, ilExAssignmentTypes\getInstance(), ilExAssignmentTypeInterface\isSubmissionAssignedToTeam(), and ilExAssignment\lookupType().
Referenced by ilExAssignmentListTextTableGUI\parse(), and ilExAssignment\recalculateLateSubmissions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::getAssignment | ( | ) |
Definition at line 93 of file class.ilExSubmission.php.
References $assignment.
Referenced by ilExSubmissionBaseGUI\__construct(), addResourceObject(), ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), ilExPeerReviewGUI\buildSubmissionPropertiesAndActions(), canAddFile(), deleteSelectedFiles(), ilExSubmissionGUI\executeCommand(), getFiles(), getLastDownloadTime(), ilExSubmissionObjectGUI\getOverviewContent(), ilExSubmissionTeamGUI\getOverviewContent(), ilExPeerReviewGUI\getOverviewContent(), getTableUserWhere(), and lookupNewFiles().
Here is the caller graph for this function:
|
static |
| ilExcUnknownAssignmentTypeException |
Definition at line 506 of file class.ilExSubmission.php.
References $DIC, $ilDB, $path, $res, ilExAssignmentTypes\getInstance(), ilExAssignmentTypeInterface\isSubmissionAssignedToTeam(), and ilExAssignment\lookupType().
Referenced by ilExerciseManagementGUI\saveGradesObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1634 of file class.ilExSubmission.php.
References $DIC, $ilDB, and $res.
Referenced by ilExerciseManagementGUI\saveGradesObject().
Here is the caller graph for this function:
|
static |
Definition at line 1623 of file class.ilExSubmission.php.
References ilObjUser\_lookupName(), and ilFileUtils\getASCIIFilename().
Referenced by ilExerciseManagementCollectFilesJob\addLink(), ilExerciseManagementCollectFilesJob\createTargetDirectory(), ilExerciseManagementCollectFilesJob\getFeedbackDirectory(), ilDownloadSubmissionsBackgroundTask\run(), and ilExerciseManagementCollectFilesJob\run().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::getDownloadedFilesInfoForTableGUIS | ( | ) |
| ilDateTimeException |
Definition at line 1437 of file class.ilExSubmission.php.
References $ctrl, $lng, ilDatePresentation\formatDate(), getFiles(), getLastSubmission(), getUserId(), IL_CAL_DATETIME, lookupNewFiles(), ilLanguage\txt(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, ilExAssignment\TYPE_UPLOAD_TEAM, and ilExAssignment\TYPE_WIKI_TEAM.
Referenced by ilExPeerReviewGUI\getReceivedFeedbackPanel(), and ilExPeerReviewGUI\initPeerReviewItemForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::getFeedbackId | ( | ) |
used for the legacy storage path of feedbacks only
Definition at line 143 of file class.ilExSubmission.php.
References getUserId().
Here is the call graph for this function:| ilExSubmission::getFiles | ( | array | $a_file_ids = null, |
| bool | $a_only_valid = false, |
||
| string | $a_min_timestamp = null, |
||
| bool | $print_versions = false |
||
| ) |
Get submission items (not only files)
Definition at line 545 of file class.ilExSubmission.php.
References $db, $ilDB, $path, getAssignment(), ILIAS\Survey\Mode\getId(), getTableUserWhere(), initStorage(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, and ilExAssignment\TYPE_WIKI_TEAM.
Referenced by canAddFile(), deleteAllFiles(), ilBlogExerciseGUI\downloadExcSubFile(), ilWikiPageGUI\downloadExcSubFile(), downloadFiles(), getDownloadedFilesInfoForTableGUIS(), ilExPeerReviewGUI\getLateSubmissionInfo(), ilExSubmissionFileGUI\getOverviewContent(), getSelectedObject(), ilExPeerReviewGUI\getSubmissionContent(), ilExerciseManagementGUI\getSubmissionZipFilePath(), getSubmittedPrintFile(), hasSubmitted(), processUploadedZipFile(), and updateTextSubmission().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| array | $a_user_ids |
Definition at line 817 of file class.ilExSubmission.php.
References $db, $ilDB, $q, $user, getAssignment(), and ILIAS\Survey\Mode\getId().
Referenced by downloadFiles().
Here is the call 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 1313 of file class.ilExSubmission.php.
References $data, $q, $res, and getTableUserWhere().
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 1292 of file class.ilExSubmission.php.
References $db, $ilDB, $q, and getTableUserWhere().
Referenced by ILIAS\Exercise\Assignment\PropertyAndActionBuilderUI\buildSampleSolution(), ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), getDownloadedFilesInfoForTableGUIS(), and ilExSubmissionTeamGUI\getOverviewContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::getPeerReview | ( | ) |
Definition at line 103 of file class.ilExSubmission.php.
References $peer_review.
Referenced by ilExPeerReviewGUI\buildSubmissionPropertiesAndActions(), ilExPeerReviewGUI\getOverviewContent(), and ilExPeerReviewGUI\getPeerReviewReceiverPanel().
Here is the caller graph for this function:| ilExSubmission::getSelectedObject | ( | ) |
Definition at line 182 of file class.ilExSubmission.php.
References getFiles().
Referenced by ilExSubmissionObjectGUI\askUnlinkBlogObject(), ilExSubmissionObjectGUI\askUnlinkPortfolioObject(), ilObjWikiGUI\getAssignmentButtons(), ilBlogExerciseGUI\getDownloadSubmissionButton(), ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 290 of file class.ilExSubmission.php.
References getTeam(), and getUserId().
Referenced by addFileUpload(), and uploadFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get assignment return entries for a filename.
Definition at line 1597 of file class.ilExSubmission.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\in(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by addResourceObject(), ilExcRepoObjAssignmentInfo\getInfo(), and ilObjWikiListGUI\getProperties().
Here is the call 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\executeCommand().
Here is the caller graph for this function:| ilExSubmission::getSubmittedPrintFile | ( | ) |
Definition at line 162 of file class.ilExSubmission.php.
References getFiles().
Referenced by hasSubmittedPrintVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::getTableUserWhere | ( | bool | $a_team_mode = false | ) |
Definition at line 1269 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 caller graph for this function:| ilExSubmission::getTeam | ( | ) |
Definition at line 98 of file class.ilExSubmission.php.
References $team.
Referenced by addFileUpload(), addResourceObject(), ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), downloadFiles(), ilExSubmissionTeamGUI\getOverviewContent(), getStorageId(), getTableUserWhere(), ilExAssTypeWikiTeamGUI\renderOverviewContent(), and uploadFile().
Here is the caller graph for this function:| ilExSubmission::getUserId | ( | ) |
Definition at line 124 of file class.ilExSubmission.php.
References $user_id.
Referenced by addFileUpload(), addResourceObject(), ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), ilExPeerReviewGUI\buildSubmissionPropertiesAndActions(), downloadFiles(), getDownloadedFilesInfoForTableGUIS(), getFeedbackId(), ilExSubmissionTeamGUI\getOverviewContent(), ilExPeerReviewGUI\getOverviewContent(), ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), getStorageId(), getTableUserWhere(), isOwner(), and uploadFile().
Here is the caller graph for this function:| ilExSubmission::getUserIds | ( | ) |
Definition at line 129 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 caller graph for this function:| ilExSubmission::hasNoTeamYet | ( | ) |
Definition at line 226 of file class.ilExSubmission.php.
Referenced by ilExSubmissionFileGUI\getOverviewContent(), and getUserIds().
Here is the caller graph for this function:| ilExSubmission::hasPeerReviewAccess | ( | ) |
Definition at line 252 of file class.ilExSubmission.php.
| ilExSubmission::hasSubmitted | ( | ) |
Definition at line 152 of file class.ilExSubmission.php.
References getFiles().
Referenced by ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), ilExSubmissionTeamGUI\getOverviewContent(), ilExSubmissionObjectGUI\getOverviewContentBlog(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), ilExAssTypeWikiTeam\handleNewUpload(), ilExcAssMemberState\isGlobalFeedbackFileAccessible(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::hasSubmittedPrintVersion | ( | ) |
Definition at line 157 of file class.ilExSubmission.php.
References getSubmittedPrintFile().
Here is the call graph for this function:
|
protected |
Definition at line 285 of file class.ilExSubmission.php.
Referenced by addFileUpload(), deleteSelectedFiles(), downloadMultipleFiles(), downloadSingleFile(), getFiles(), and uploadFile().
Here is the caller graph for this function:| ilExSubmission::isInTeam | ( | int | $a_user_id = null | ) |
Definition at line 235 of file class.ilExSubmission.php.
References $user, ilObject\getId(), and getUserIds().
Referenced by canView().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 278 of file class.ilExSubmission.php.
Referenced by addResourceObject(), and updateTextSubmission().
Here is the caller graph for this function:| ilExSubmission::isOwner | ( | ) |
Definition at line 245 of file class.ilExSubmission.php.
References $user, and getUserId().
Referenced by canSubmit().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::isTutor | ( | ) |
Definition at line 221 of file class.ilExSubmission.php.
References $is_tutor.
Referenced by canView().
Here is the caller graph for this function:
|
static |
Get exercise from submission id (used in ilObjMediaObject)
Definition at line 663 of file class.ilExSubmission.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
Here is the caller graph for this function:| ilExSubmission::lookupNewFiles | ( | int | $a_tutor = null | ) |
Check how much files have been uploaded by the learner after the last download of the tutor.
Definition at line 630 of file class.ilExSubmission.php.
References $db, $ilDB, $q, $user, getAssignment(), ILIAS\Survey\Mode\getId(), ilObject\getId(), and getTableUserWhere().
Referenced by getDownloadedFilesInfoForTableGUIS().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::processUploadedZipFile | ( | string | $fileTmp | ) |
processes error handling etc for uploaded archive
| string | $fileTmp | path and filename to uploaded file |
Definition at line 417 of file class.ilExSubmission.php.
References $filename, ILIAS\LTI\ToolProvider\$key, $lng, ilFileUtils\delDir(), getFiles(), ilFileUtils\ilTempnam(), ilFileUtils\makeDir(), ilFileUtils\recursive_dirscan(), ilLanguage\txt(), uploadFile(), and ilFileUtils\utf8_encode().
Here is the call graph for this function:
|
static |
Definition at line 1657 of file class.ilExSubmission.php.
References ilFileUtilsException\$BROKEN_FILE, $DIC, ilFileUtilsException\$DOUBLETTES_FOUND, ilFileUtilsException\$INFECTED_FILE, ILIAS\LTI\ToolProvider\$key, ilFileUtils\delDir(), ilFileUtils\moveUploadedFile(), ilFileUtils\recursive_dirscan(), ilLanguage\txt(), ilFileUtils\utf8_encode(), and ilVirusScanner\virusHandling().
Here is the call graph for this function:| ilExSubmission::updateTextSubmission | ( | string | $a_text | ) |
Handle text assignment submissions.
Definition at line 1401 of file class.ilExSubmission.php.
References $db, $id, $ilDB, addResourceObject(), deleteAllFiles(), getFiles(), isLate(), and ilUtil\now().
Here is the call graph for this function:| ilExSubmission::updateTutorDownloadTime | ( | ) |
Definition at line 944 of file class.ilExSubmission.php.
References $db, $ilDB, $user, getUserIds(), and ilUtil\now().
Referenced by downloadFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::uploadFile | ( | array | $a_http_post_files, |
| bool | $unzip = false |
||
| ) |
Save submitted file of user.
| ilFileUtilsException |
Definition at line 306 of file class.ilExSubmission.php.
References $db, $ilDB, 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 caller graph for this function:| ilExSubmission::validatePeerReviews | ( | ) |
Definition at line 108 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 caller graph for this function:
|
protected |
Definition at line 44 of file class.ilExSubmission.php.
|
protected |
Definition at line 45 of file class.ilExSubmission.php.
|
protected |
Definition at line 38 of file class.ilExSubmission.php.
Referenced by getAssignment().
|
protected |
Definition at line 37 of file class.ilExSubmission.php.
Referenced by getDownloadedFilesInfoForTableGUIS().
|
protected |
Definition at line 35 of file class.ilExSubmission.php.
Referenced by addFileUpload(), addResourceObject(), deleteSelectedFiles(), getFiles(), getLastDownloadTime(), getLastSubmission(), getTableUserWhere(), lookupNewFiles(), updateTextSubmission(), updateTutorDownloadTime(), and uploadFile().
|
protected |
Definition at line 32 of file class.ilExSubmission.php.
|
protected |
Definition at line 42 of file class.ilExSubmission.php.
Referenced by isTutor().
|
protected |
Definition at line 36 of file class.ilExSubmission.php.
Referenced by downloadFiles(), downloadMultipleFiles(), getDownloadedFilesInfoForTableGUIS(), and processUploadedZipFile().
|
private |
Definition at line 47 of file class.ilExSubmission.php.
|
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 46 of file class.ilExSubmission.php.
|
protected |
Definition at line 40 of file class.ilExSubmission.php.
Referenced by getTeam().
|
protected |
Definition at line 34 of file class.ilExSubmission.php.
Referenced by canView(), downloadFiles(), getLastDownloadTime(), isInTeam(), isOwner(), lookupNewFiles(), and updateTutorDownloadTime().
|
protected |
Definition at line 39 of file class.ilExSubmission.php.
Referenced by __construct(), getUserId(), and validatePeerReviews().
| const ilExSubmission::TYPE_FILE = "File" |
Definition at line 28 of file class.ilExSubmission.php.
Referenced by ilExAssTypeUpload\getSubmissionType(), and ilExAssTypeUploadTeam\getSubmissionType().
| const ilExSubmission::TYPE_OBJECT = "Object" |
Definition at line 29 of file class.ilExSubmission.php.
Referenced by ilExAssTypeBlog\getSubmissionType(), and ilExAssTypePortfolio\getSubmissionType().
| const ilExSubmission::TYPE_REPO_OBJECT = "RepoObject" |
Definition at line 31 of file class.ilExSubmission.php.
Referenced by addResourceObject(), ilExSubmissionGUI\executeCommand(), ilExcRepoObjAssignmentInfo\getInfo(), and ilExAssTypeWikiTeam\getSubmissionType().
| const ilExSubmission::TYPE_TEXT = "Text" |
Definition at line 30 of file class.ilExSubmission.php.
Referenced by ilExAssTypeText\getSubmissionType().