ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
|
Public Member Functions | |
__construct () | |
Constructor. More... | |
getInputTypes () | |
getOutputType () | |
isStateless () | |
run (array $input, Observer $observer) | |
run the job More... | |
copyFileToSubDirectory (string $a_directory, \ILIAS\Exercise\PeerReview\Criteria\CriteriaFile $file) | |
Copy a file in the Feedback_files directory TODO use the new filesystem. More... | |
getExpectedTimeOfTaskInSeconds () | |
collectSubmissionFiles () | |
Store the zip file which contains all submission files in the target directory. More... | |
getExtraColumnsForSubmissionFiles (int $a_obj_id, int $a_ass_id) | |
Get the number of max amount of files submitted by a single user in the assignment. More... | |
addLink (int $a_row, int $a_col, Submission $sub) | |
getAssignmentMembersIds () | |
get ONLY the members ids for this assignment More... | |
![]() | |
getInput () | |
| |
![]() | |
setInput (array $values) | |
getOutput () | |
getInput () | |
getType () | |
unfoldTask () | |
Unfold the task. More... | |
getRemoveOption () | |
| |
getAbortOption () | |
| |
Data Fields | |
const | FBK_DIRECTORY = "Feedback_files" |
const | LINK_COLOR = "0,0,255" |
const | BG_COLOR = "255,255,255" |
const | PARTICIPANT_LASTNAME_COLUMN = 0 |
const | PARTICIPANT_FIRSTNAME_COLUMN = 1 |
const | PARTICIPANT_LOGIN_COLUMN = 2 |
const | SUBMISSION_DATE_COLUMN = 3 |
const | FIRST_DEFAULT_SUBMIT_COLUMN = 4 |
const | FIRST_DEFAULT_REVIEW_COLUMN = 5 |
![]() | |
const | MAIN_REMOVE = 'bt_main_remove' |
const | MAIN_ABORT = 'bt_main_abort' |
Protected Member Functions | |
addColumnTitles () | |
Set the Excel column titles. More... | |
createUniqueTempDirectory () | |
createTargetDirectory () | |
Create the directory with the assignment title. More... | |
createSubmissionsDirectory () | |
Create the directory with the assignment title. More... | |
isExcelNeeded (int $a_ass_type, bool $a_has_fbk) | |
getFeedbackDirectory (int $participant_id, int $feedback_giver) | |
see also bug https://mantis.ilias.de/view.php?id=30999 More... | |
collectAssignmentData (int $assignment_id) | |
write assignment data to excel file More... | |
![]() | |
checkTypes (array $values) | |
extractType ($value) | |
Protected Attributes | |
ILIAS Exercise PeerReview DomainService | $peer_review |
InternalDomainService | $domain |
ILIAS Exercise Team TeamManager | $team |
ilLogger | $logger |
string | $target_directory = "" |
string | $submissions_directory = "" |
ilExAssignment | $assignment |
int | $user_id = 0 |
int | $exercise_id = 0 |
int | $exercise_ref_id = 0 |
string | $temp_dir = null |
ilLanguage | $lng |
string | $sanitized_title = "" |
ilExcel | $excel |
array | $criteria_items = [] |
array | $title_columns = [] |
array | $ass_types_with_files = [] |
int | $participant_id = 0 |
array | $selected_participants = null |
![]() | |
array | $input = [] |
Value | $output |
Definition at line 32 of file class.ilExerciseManagementCollectFilesJob.php.
ilExerciseManagementCollectFilesJob::__construct | ( | ) |
Constructor.
PhpUndefinedMethodInspection
Definition at line 68 of file class.ilExerciseManagementCollectFilesJob.php.
References $DIC, ILIAS\Repository\lng(), ILIAS\Repository\logger(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
|
protected |
Set the Excel column titles.
Definition at line 191 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
ilExerciseManagementCollectFilesJob::addLink | ( | int | $a_row, |
int | $a_col, | ||
Submission | $sub | ||
) |
Definition at line 407 of file class.ilExerciseManagementCollectFilesJob.php.
References ilExSubmission\getDirectoryNameFromUserData(), ILIAS\Exercise\Submission\Submission\getTitle(), ILIAS\Exercise\Submission\Submission\getUserId(), ILIAS\Repository\lng(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, and ilExAssignment\TYPE_UPLOAD.
Referenced by collectAssignmentData().
|
protected |
write assignment data to excel file
int | $assignment_id |
Definition at line 450 of file class.ilExerciseManagementCollectFilesJob.php.
References $participant_id, ilObjUser\_lookupName(), addColumnTitles(), addLink(), collectSubmissionFiles(), createSubmissionsDirectory(), createTargetDirectory(), createUniqueTempDirectory(), ilFileUtils\getASCIIFilename(), getAssignmentMembersIds(), getExtraColumnsForSubmissionFiles(), isExcelNeeded(), ILIAS\Repository\lng(), null, ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by run().
ilExerciseManagementCollectFilesJob::collectSubmissionFiles | ( | ) |
Store the zip file which contains all submission files in the target directory.
TODO -> put the reference of the original code. Possible TODO -> extract this to another BT job.
Definition at line 242 of file class.ilExerciseManagementCollectFilesJob.php.
References $exercise.
Referenced by collectAssignmentData().
ilExerciseManagementCollectFilesJob::copyFileToSubDirectory | ( | string | $a_directory, |
\ILIAS\Exercise\PeerReview\Criteria\CriteriaFile | $file | ||
) |
Copy a file in the Feedback_files directory TODO use the new filesystem.
Definition at line 163 of file class.ilExerciseManagementCollectFilesJob.php.
References Vendor\Package\$f, and ilFileUtils\makeDirParents().
Referenced by isExcelNeeded().
|
protected |
Create the directory with the assignment title.
Definition at line 227 of file class.ilExerciseManagementCollectFilesJob.php.
References ilFileUtils\createDirectory(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
Referenced by collectAssignmentData().
|
protected |
Create the directory with the assignment title.
Definition at line 213 of file class.ilExerciseManagementCollectFilesJob.php.
References $path, $sanitized_title, ilExSubmission\getDirectoryNameFromUserData(), and ilFileUtils\makeDirParents().
Referenced by collectAssignmentData().
|
protected |
Definition at line 204 of file class.ilExerciseManagementCollectFilesJob.php.
References ilFileUtils\ilTempnam(), and ilFileUtils\makeDirParents().
Referenced by collectAssignmentData().
ilExerciseManagementCollectFilesJob::getAssignmentMembersIds | ( | ) |
get ONLY the members ids for this assignment
Definition at line 648 of file class.ilExerciseManagementCollectFilesJob.php.
References $DIC, $ilDB, and ilObjUser\userExists().
Referenced by collectAssignmentData().
ilExerciseManagementCollectFilesJob::getExpectedTimeOfTaskInSeconds | ( | ) |
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 182 of file class.ilExerciseManagementCollectFilesJob.php.
ilExerciseManagementCollectFilesJob::getExtraColumnsForSubmissionFiles | ( | int | $a_obj_id, |
int | $a_ass_id | ||
) |
Get the number of max amount of files submitted by a single user in the assignment.
Used to add columns to the excel.
Definition at line 398 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
|
protected |
see also bug https://mantis.ilias.de/view.php?id=30999
Definition at line 386 of file class.ilExerciseManagementCollectFilesJob.php.
References ilExSubmission\getDirectoryNameFromUserData().
Referenced by isExcelNeeded().
ilExerciseManagementCollectFilesJob::getInputTypes | ( | ) |
Implements ILIAS\BackgroundTasks\Task.
Definition at line 90 of file class.ilExerciseManagementCollectFilesJob.php.
ilExerciseManagementCollectFilesJob::getOutputType | ( | ) |
Implements ILIAS\BackgroundTasks\Task.
Definition at line 103 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 272 of file class.ilExerciseManagementCollectFilesJob.php.
References $participant_id, copyFileToSubDirectory(), getFeedbackDirectory(), ilExcCriteria\getInstanceById(), ilExcCriteria\getInstanceByType(), ilRating\getRatingForUserAndObject(), ILIAS\Repository\lng(), ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by collectAssignmentData().
ilExerciseManagementCollectFilesJob::isStateless | ( | ) |
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 108 of file class.ilExerciseManagementCollectFilesJob.php.
ilExerciseManagementCollectFilesJob::run | ( | array | $input, |
Observer | $observer | ||
) |
run the job
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 121 of file class.ilExerciseManagementCollectFilesJob.php.
References $out, $participant_id, $target_directory, collectAssignmentData(), ilExSubmission\getDirectoryNameFromUserData(), ilExAssignment\getInstancesByExercise(), ILIAS\Repository\logger(), and null.
|
protected |
Definition at line 61 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 51 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 59 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 45 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 58 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 53 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 54 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 56 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 48 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 62 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData(), isExcelNeeded(), and run().
|
protected |
Definition at line 44 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 57 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by createTargetDirectory().
|
protected |
Definition at line 63 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 50 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 49 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by run().
|
protected |
Definition at line 46 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 55 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 60 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 52 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::BG_COLOR = "255,255,255" |
Definition at line 36 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::FBK_DIRECTORY = "Feedback_files" |
Definition at line 34 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::FIRST_DEFAULT_REVIEW_COLUMN = 5 |
Definition at line 43 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::FIRST_DEFAULT_SUBMIT_COLUMN = 4 |
Definition at line 42 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::LINK_COLOR = "0,0,255" |
Definition at line 35 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::PARTICIPANT_FIRSTNAME_COLUMN = 1 |
Definition at line 39 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::PARTICIPANT_LASTNAME_COLUMN = 0 |
Definition at line 38 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::PARTICIPANT_LOGIN_COLUMN = 2 |
Definition at line 40 of file class.ilExerciseManagementCollectFilesJob.php.
const ilExerciseManagementCollectFilesJob::SUBMISSION_DATE_COLUMN = 3 |
Definition at line 41 of file class.ilExerciseManagementCollectFilesJob.php.