|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Exercise submission //TODO: This class has many static methods related to delivered "files". 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 () | |
| getSubmittedEntry (bool $print=false) | |
| getSelectedObject () | |
| canSubmit () | |
| canView () | |
| isTutor () | |
| hasNoTeamYet () | |
| isInTeam (?int $a_user_id=null) | |
| isOwner () | |
| hasPeerReviewAccess () | |
| canAddFile () | |
| isLate () | |
| lookupNewFiles (?int $a_tutor=null) | |
| Check how much files have been uploaded by the learner after the last download of the tutor. More... | |
| deleteAllFiles () | |
| updateTutorDownloadTime () | |
| getTableUserWhere () | |
| 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... | |
Static Public Member Functions | |
| 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) |
| Deletes already delivered files. 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 | |
| getStorageId () | |
| getLastDownloadTime (array $a_user_ids) | |
| downloadSingleFile (Submission $sub, string $title) | |
Protected Attributes | |
| ILIAS Exercise Submission SubmissionManager | $sub_manager |
| 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 |
Exercise submission //TODO: This class has many static methods related to delivered "files".
Extract them to classes.
Definition at line 28 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 52 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 693 of file class.ilExSubmission.php.
References $user_id.
| ilExSubmission::canAddFile | ( | ) |
Definition at line 256 of file class.ilExSubmission.php.
References canSubmit(), getAssignment(), and getUserId().
Here is the call graph for this function:| ilExSubmission::canSubmit | ( | ) |
Definition at line 189 of file class.ilExSubmission.php.
References isOwner().
Referenced by canAddFile(), canView(), 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 195 of file class.ilExSubmission.php.
References $user, canSubmit(), isInTeam(), and isTutor().
Here is the call graph for this function:| ilExSubmission::deleteAllFiles | ( | ) |
Definition at line 370 of file class.ilExSubmission.php.
| ilExSubmission::deleteResourceObject | ( | ) |
Definition at line 743 of file class.ilExSubmission.php.
Referenced by ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the caller graph for this function:
|
static |
Deletes already delivered files.
| array | $file_id_array | An array containing database ids of the delivered files Delete all delivered files of user |
| ilExcUnknownAssignmentTypeException |
Definition at line 441 of file class.ilExSubmission.php.
References ilObject\_lookupType(), 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:
|
protected |
Definition at line 614 of file class.ilExSubmission.php.
|
static |
Check if given file was assigned Used in Blog/Portfolio.
Definition at line 351 of file class.ilExSubmission.php.
Referenced by ILIAS\Blog\Exercise\BlogExercise\getAssignmentsOfBlog(), and ilPortfolioExercise\getAssignmentsOfPortfolio().
Here is the caller graph for this function:| ilExSubmission::getAssignment | ( | ) |
Definition at line 100 of file class.ilExSubmission.php.
References $assignment.
Referenced by ilExSubmissionBaseGUI\__construct(), ilExSubmissionFileGUI\__construct(), ilExSubmissionTextGUI\__construct(), ilExPeerReviewGUI\buildSubmissionPropertiesAndActions(), ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), canAddFile(), and setSubmission().
Here is the caller graph for this function:
|
static |
Definition at line 988 of file class.ilExSubmission.php.
|
static |
Definition at line 977 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::getFeedbackId | ( | ) |
used for the legacy storage path of feedbacks only
Definition at line 150 of file class.ilExSubmission.php.
References getUserId().
Here is the call graph for this function:
|
protected |
| array | $a_user_ids |
Definition at line 479 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 665 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 644 of file class.ilExSubmission.php.
Referenced by ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions().
Here is the caller graph for this function:| ilExSubmission::getPeerReview | ( | ) |
Definition at line 110 of file class.ilExSubmission.php.
References $peer_review.
Referenced by ilExPeerReviewGUI\buildSubmissionPropertiesAndActions(), and ilExPeerReviewGUI\getPeerReviewReceiverPanel().
Here is the caller graph for this function:| ilExSubmission::getSelectedObject | ( | ) |
Definition at line 184 of file class.ilExSubmission.php.
References getUserId().
Referenced by 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 286 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 948 of file class.ilExSubmission.php.
References 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 95 of file class.ilExSubmission.php.
| ilExSubmission::getSubmittedEntry | ( | bool | $print = false | ) |
Definition at line 173 of file class.ilExSubmission.php.
References getUserId().
Referenced by hasSubmittedPrintVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExSubmission::getTableUserWhere | ( | ) |
Definition at line 626 of file class.ilExSubmission.php.
References $ilDB.
| ilExSubmission::getTeam | ( | ) |
Definition at line 105 of file class.ilExSubmission.php.
References $team.
Referenced by ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), getStorageId(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
Here is the caller graph for this function:| ilExSubmission::getUserId | ( | ) |
Definition at line 131 of file class.ilExSubmission.php.
References $user_id.
Referenced by ilExcDeliveredFilesTableGUI\__construct(), ilExPeerReviewGUI\buildSubmissionPropertiesAndActions(), ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), canAddFile(), getFeedbackId(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), getSelectedObject(), getStorageId(), getSubmittedEntry(), hasSubmitted(), and setSubmission().
Here is the caller graph for this function:| ilExSubmission::getUserIds | ( | ) |
Definition at line 136 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 224 of file class.ilExSubmission.php.
Referenced by getUserIds().
Here is the caller graph for this function:| ilExSubmission::hasPeerReviewAccess | ( | ) |
Definition at line 250 of file class.ilExSubmission.php.
| ilExSubmission::hasSubmitted | ( | ) |
Definition at line 159 of file class.ilExSubmission.php.
References getUserId().
Referenced by ilExSubmissionTeamGUI\buildSubmissionPropertiesAndActions(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), 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 168 of file class.ilExSubmission.php.
References getSubmittedEntry().
Here is the call graph for this function:| ilExSubmission::isInTeam | ( | ?int | $a_user_id = null | ) |
Definition at line 233 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:| ilExSubmission::isLate | ( | ) |
Definition at line 279 of file class.ilExSubmission.php.
| ilExSubmission::isOwner | ( | ) |
Definition at line 243 of file class.ilExSubmission.php.
References $user.
Referenced by canSubmit().
Here is the caller graph for this function:| ilExSubmission::isTutor | ( | ) |
Definition at line 219 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 333 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 300 of file class.ilExSubmission.php.
|
static |
Definition at line 1011 of file class.ilExSubmission.php.
| ilExSubmission::updateTextSubmission | ( | string | $a_text | ) |
Handle text assignment submissions.
Definition at line 753 of file class.ilExSubmission.php.
References $id, $ilDB, and ilUtil\now().
Here is the call graph for this function:| ilExSubmission::updateTutorDownloadTime | ( | ) |
Definition at line 589 of file class.ilExSubmission.php.
References $ass_id, $ilDB, $user_id, and ilUtil\now().
Here is the call graph for this function:| ilExSubmission::validatePeerReviews | ( | ) |
Definition at line 115 of file class.ilExSubmission.php.
References $res, $user_id, $valid, and getUserIds().
Here is the call graph for this function:
|
protected |
Definition at line 47 of file class.ilExSubmission.php.
|
protected |
Definition at line 48 of file class.ilExSubmission.php.
|
protected |
Definition at line 41 of file class.ilExSubmission.php.
Referenced by getAssignment().
|
protected |
Definition at line 40 of file class.ilExSubmission.php.
|
protected |
Definition at line 38 of file class.ilExSubmission.php.
|
protected |
Definition at line 35 of file class.ilExSubmission.php.
|
protected |
Definition at line 45 of file class.ilExSubmission.php.
Referenced by isTutor().
|
protected |
Definition at line 39 of file class.ilExSubmission.php.
|
private |
Definition at line 50 of file class.ilExSubmission.php.
|
protected |
Definition at line 44 of file class.ilExSubmission.php.
Referenced by getPeerReview().
|
protected |
Definition at line 46 of file class.ilExSubmission.php.
|
protected |
Definition at line 49 of file class.ilExSubmission.php.
|
protected |
Definition at line 34 of file class.ilExSubmission.php.
|
protected |
Definition at line 43 of file class.ilExSubmission.php.
Referenced by getTeam().
|
protected |
Definition at line 37 of file class.ilExSubmission.php.
Referenced by canView(), isInTeam(), and isOwner().
|
protected |
Definition at line 42 of file class.ilExSubmission.php.
Referenced by getUserId(), and validatePeerReviews().
| const ilExSubmission::TYPE_FILE = "File" |
Definition at line 30 of file class.ilExSubmission.php.
Referenced by ilExAssTypeUpload\getSubmissionType(), and ilExAssTypeUploadTeam\getSubmissionType().
| const ilExSubmission::TYPE_OBJECT = "Object" |
Definition at line 31 of file class.ilExSubmission.php.
Referenced by ilExAssTypeBlog\getSubmissionType(), and ilExAssTypePortfolio\getSubmissionType().
| const ilExSubmission::TYPE_REPO_OBJECT = "RepoObject" |
Definition at line 33 of file class.ilExSubmission.php.
Referenced by ilExSubmissionGUI\executeCommand(), ilExcRepoObjAssignmentInfo\getInfo(), and ilExAssTypeWikiTeam\getSubmissionType().
| const ilExSubmission::TYPE_TEXT = "Text" |
Definition at line 32 of file class.ilExSubmission.php.
Referenced by ilExAssTypeText\getSubmissionType().