|
ILIAS
release_8 Revision v8.24
|
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 () | |
| 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... | |
| 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) |
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 | |
| 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 48 of file class.ilExSubmission.php.
References $DIC, 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::addResourceObject | ( | string | $a_wsp_id, |
| string | $a_text = null |
||
| ) |
Add personal resource or repository object (ref_id) to assigment.
Definition at line 1273 of file class.ilExSubmission.php.
| ilExSubmission::canAddFile | ( | ) |
Definition at line 253 of file class.ilExSubmission.php.
References canSubmit(), getAssignment(), and getFiles().
Here is the call graph for this function:| ilExSubmission::canSubmit | ( | ) |
Definition at line 186 of file class.ilExSubmission.php.
References isOwner().
Referenced by canAddFile(), canView(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::canView | ( | ) |
Definition at line 192 of file class.ilExSubmission.php.
References $ilUser, $user, canSubmit(), isInTeam(), and isTutor().
Here is the call graph for this function:| ilExSubmission::deleteAllFiles | ( | ) |
Definition at line 642 of file class.ilExSubmission.php.
| ilExSubmission::deleteResourceObject | ( | ) |
Definition at line 1323 of file class.ilExSubmission.php.
Referenced by ilExAssTypeWikiTeamGUI\renderOverviewContent().
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 662 of file class.ilExSubmission.php.
|
static |
Delete all delivered files of user.
| ilExcUnknownAssignmentTypeException |
Definition at line 723 of file class.ilExSubmission.php.
References ilExAssignmentTeam\removeTeamMember().
Referenced by ilExerciseMembers\deassignMember().
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 1017 of file class.ilExSubmission.php.
| ilExSubmission::downloadFiles | ( | array | $a_file_ids = null, |
| bool | $a_only_new = false, |
||
| bool | $a_peer_review_mask_filename = false |
||
| ) |
Definition at line 764 of file class.ilExSubmission.php.
|
protected |
Definition at line 918 of file class.ilExSubmission.php.
|
protected |
Definition at line 900 of file class.ilExSubmission.php.
|
static |
Check if given file was assigned Used in Blog/Portfolio.
Definition at line 623 of file class.ilExSubmission.php.
Referenced by ilBlogExercise\getAssignmentsOfBlog(), and ilPortfolioExercise\getAssignmentsOfPortfolio().
Here is the caller graph for this function:
|
static |
| ilExcUnknownAssignmentTypeException |
Definition at line 412 of file class.ilExSubmission.php.
Referenced by ilExAssignmentListTextTableGUI\parse(), and ilExAssignment\recalculateLateSubmissions().
Here is the caller graph for this function:| ilExSubmission::getAssignment | ( | ) |
Definition at line 91 of file class.ilExSubmission.php.
References $assignment.
Referenced by canAddFile().
Here is the caller graph for this function:
|
static |
| ilExcUnknownAssignmentTypeException |
Definition at line 448 of file class.ilExSubmission.php.
|
static |
Definition at line 1566 of file class.ilExSubmission.php.
|
static |
Definition at line 1555 of file class.ilExSubmission.php.
References ilObjUser\_lookupName(), and ilFileUtils\getASCIIFilename().
Referenced by ilExerciseManagementCollectFilesJob\createTargetDirectory(), ilExerciseManagementCollectFilesJob\getFeedbackDirectory(), and ilDownloadSubmissionsBackgroundTask\run().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::getDownloadedFilesInfoForTableGUIS | ( | ) |
| ilDateTimeException |
Definition at line 1369 of file class.ilExSubmission.php.
References $lng, ilDatePresentation\formatDate(), IL_CAL_DATETIME, 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:| ilExSubmission::getFeedbackId | ( | ) |
Definition at line 138 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 487 of file class.ilExSubmission.php.
Referenced by canAddFile(), getSelectedObject(), getSubmittedPrintFile(), and hasSubmitted().
Here is the caller graph for this function:
|
protected |
| array | $a_user_ids |
Definition at line 748 of file class.ilExSubmission.php.
| 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 1245 of file class.ilExSubmission.php.
| 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 1224 of file class.ilExSubmission.php.
References $ilDB.
| ilExSubmission::getPeerReview | ( | ) |
Definition at line 101 of file class.ilExSubmission.php.
References $peer_review.
| ilExSubmission::getSelectedObject | ( | ) |
Definition at line 177 of file class.ilExSubmission.php.
References getFiles().
Referenced by ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 285 of file class.ilExSubmission.php.
References getTeam(), and getUserId().
Here is the call graph for this function:
|
static |
Get assignment return entries for a filename.
Definition at line 1529 of file class.ilExSubmission.php.
References $query, and ilDBInterface\in().
Referenced by 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 86 of file class.ilExSubmission.php.
| ilExSubmission::getSubmittedPrintFile | ( | ) |
Definition at line 157 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 1201 of file class.ilExSubmission.php.
References $ilDB.
| ilExSubmission::getTeam | ( | ) |
Definition at line 96 of file class.ilExSubmission.php.
References $team.
Referenced by getStorageId(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the caller graph for this function:| ilExSubmission::getUserId | ( | ) |
Definition at line 122 of file class.ilExSubmission.php.
References $user_id.
Referenced by getFeedbackId(), and getStorageId().
Here is the caller graph for this function:| ilExSubmission::getUserIds | ( | ) |
Definition at line 127 of file class.ilExSubmission.php.
References hasNoTeamYet().
Referenced by isInTeam(), and validatePeerReviews().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::hasNoTeamYet | ( | ) |
Definition at line 221 of file class.ilExSubmission.php.
Referenced by getUserIds().
Here is the caller graph for this function:| ilExSubmission::hasPeerReviewAccess | ( | ) |
Definition at line 247 of file class.ilExSubmission.php.
| ilExSubmission::hasSubmitted | ( | ) |
Definition at line 147 of file class.ilExSubmission.php.
References getFiles().
Referenced by 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 152 of file class.ilExSubmission.php.
References getSubmittedPrintFile().
Here is the call graph for this function:
|
protected |
Definition at line 280 of file class.ilExSubmission.php.
| ilExSubmission::isInTeam | ( | int | $a_user_id = null | ) |
Definition at line 230 of file class.ilExSubmission.php.
References $ilUser, $user, 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 273 of file class.ilExSubmission.php.
| ilExSubmission::isOwner | ( | ) |
Definition at line 240 of file class.ilExSubmission.php.
References $ilUser, and $user.
Referenced by canSubmit().
Here is the caller graph for this function:| ilExSubmission::isTutor | ( | ) |
Definition at line 216 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 605 of file class.ilExSubmission.php.
| 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 572 of file class.ilExSubmission.php.
| ilExSubmission::processUploadedZipFile | ( | string | $fileTmp | ) |
processes error handling etc for uploaded archive
| string | $fileTmp | path and filename to uploaded file |
Definition at line 359 of file class.ilExSubmission.php.
| ilExSubmission::updateTextSubmission | ( | string | $a_text | ) |
Handle text assignment submissions.
Definition at line 1333 of file class.ilExSubmission.php.
References $id, $ilDB, and ilUtil\now().
Here is the call graph for this function:| ilExSubmission::updateTutorDownloadTime | ( | ) |
Definition at line 875 of file class.ilExSubmission.php.
References $ilDB, $ilUser, and ilUtil\now().
Here is the call graph for this function:| ilExSubmission::uploadFile | ( | array | $a_http_post_files, |
| bool | $unzip = false |
||
| ) |
Save submitted file of user.
| ilFileUtilsException |
Definition at line 300 of file class.ilExSubmission.php.
| ilExSubmission::validatePeerReviews | ( | ) |
Definition at line 106 of file class.ilExSubmission.php.
References $res, $user_id, $valid, and getUserIds().
Here is the call graph for this function:
|
protected |
Definition at line 43 of file class.ilExSubmission.php.
|
protected |
Definition at line 44 of file class.ilExSubmission.php.
|
protected |
Definition at line 37 of file class.ilExSubmission.php.
Referenced by getAssignment().
|
protected |
Definition at line 36 of file class.ilExSubmission.php.
|
protected |
Definition at line 34 of file class.ilExSubmission.php.
|
protected |
Definition at line 41 of file class.ilExSubmission.php.
Referenced by isTutor().
|
protected |
Definition at line 35 of file class.ilExSubmission.php.
|
private |
Definition at line 46 of file class.ilExSubmission.php.
|
protected |
Definition at line 40 of file class.ilExSubmission.php.
Referenced by getPeerReview().
|
protected |
Definition at line 42 of file class.ilExSubmission.php.
|
protected |
Definition at line 45 of file class.ilExSubmission.php.
|
protected |
Definition at line 39 of file class.ilExSubmission.php.
Referenced by getTeam().
|
protected |
Definition at line 33 of file class.ilExSubmission.php.
Referenced by canView(), isInTeam(), and isOwner().
|
protected |
Definition at line 38 of file class.ilExSubmission.php.
Referenced by 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 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().