ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Exercise submission //TODO: This class has many static methods related to delivered "files". More...
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().
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().
ilExSubmission::canSubmit | ( | ) |
Definition at line 189 of file class.ilExSubmission.php.
References isOwner().
Referenced by canAddFile(), canView(), ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
ilExSubmission::canView | ( | ) |
Definition at line 195 of file class.ilExSubmission.php.
References $user, canSubmit(), isInTeam(), and isTutor().
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().
|
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().
|
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().
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().
|
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().
ilExSubmission::getFeedbackId | ( | ) |
used for the legacy storage path of feedbacks only
Definition at line 150 of file class.ilExSubmission.php.
References getUserId().
|
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().
ilExSubmission::getPeerReview | ( | ) |
Definition at line 110 of file class.ilExSubmission.php.
References $peer_review.
Referenced by ilExPeerReviewGUI\buildSubmissionPropertiesAndActions(), and ilExPeerReviewGUI\getPeerReviewReceiverPanel().
ilExSubmission::getSelectedObject | ( | ) |
Definition at line 184 of file class.ilExSubmission.php.
References getUserId().
Referenced by ilExSubmissionObjectGUI\getOverviewContentPortfolio(), and ilExAssTypeWikiTeamGUI\renderOverviewContent().
|
protected |
Definition at line 286 of file class.ilExSubmission.php.
References getTeam(), and getUserId().
|
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().
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().
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().
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().
ilExSubmission::getUserIds | ( | ) |
Definition at line 136 of file class.ilExSubmission.php.
References hasNoTeamYet().
Referenced by isInTeam(), and validatePeerReviews().
ilExSubmission::hasNoTeamYet | ( | ) |
Definition at line 224 of file class.ilExSubmission.php.
Referenced by getUserIds().
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().
ilExSubmission::hasSubmittedPrintVersion | ( | ) |
Definition at line 168 of file class.ilExSubmission.php.
References getSubmittedEntry().
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().
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().
ilExSubmission::isTutor | ( | ) |
Definition at line 219 of file class.ilExSubmission.php.
References $is_tutor.
Referenced by canView().
|
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().
ilExSubmission::updateTutorDownloadTime | ( | ) |
Definition at line 589 of file class.ilExSubmission.php.
References $ass_id, $ilDB, $user_id, and ilUtil\now().
ilExSubmission::validatePeerReviews | ( | ) |
Definition at line 115 of file class.ilExSubmission.php.
References $res, $user_id, $valid, and getUserIds().
|
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().