| ILIAS
    release_6 Revision v6.24-5-g0c8bfefb3b8
    | 
Description of class class. More...
 Inheritance diagram for ilExerciseManagementCollectFilesJob:
 Inheritance diagram for ilExerciseManagementCollectFilesJob: Collaboration diagram for ilExerciseManagementCollectFilesJob:
 Collaboration diagram for ilExerciseManagementCollectFilesJob:| Public Member Functions | |
| __construct () | |
| Constructor.  More... | |
| getInputTypes () | |
| getOutputType () | |
| isStateless () | |
| run (array $input, Observer $observer) | |
| run the job  More... | |
| copyFileToSubDirectory ($a_directory, $a_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 ($a_obj_id, $a_ass_id) | |
| Get the number of max amount of files submitted by a single user in the assignment.  More... | |
| addLink ($a_row, $a_col, $a_submission_file) | |
| Mapping the links to use them on the excel.  More... | |
| getAssignmentMembersIds () | |
|  Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob | |
| getInput () | |
| 
 | |
|  Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| setInput (array $values) | |
| getOutput () | |
| getInput () | |
| getType () | |
| unfoldTask () | |
| Unfold the task.  More... | |
| getRemoveOption () | |
| 
 
 | |
| getAbortOption () | |
| 
 | |
| getType () | |
| getInputTypes () | |
| getOutputType () | |
| getOutput () | |
| setInput (array $values) | |
| getInput () | |
| unfoldTask () | |
| getRemoveOption () | |
| getAbortOption () | |
| run (array $input, Observer $observer) | |
| isStateless () | |
| getInput () | |
| getExpectedTimeOfTaskInSeconds () | |
| 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 | 
|  Data Fields inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| 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 ($a_ass_type, $a_has_fbk) | |
| addCriteriaToExcel ($feedback_giver, $participant_id, $row, $col) | |
| Add criteria data to the excel.  More... | |
| getFeedbackDirectory (int $participant_id, int $feedback_giver) | |
| see also bug https://mantis.ilias.de/view.php?id=30999  More... | |
| collectAssignmentData ($assignment_id) | |
|  Protected Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| checkTypes ($values) | |
| extractType ($value) | |
| Protected Attributes | |
| $target_directory | |
| $submissions_directory | |
| $assignment | |
| $user_id | |
| $exercise_id | |
| $exercise_ref_id | |
| $temp_dir | |
| $lng | |
| $sanitized_title | |
| $excel | |
| $criteria_items | |
| $title_columns | |
| $ass_types_with_files | |
| $participant_id | |
|  Protected Attributes inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| $input = [] | |
| $output | |
| Private Attributes | |
| $logger = null | |
Description of class class.
Definition at line 17 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::__construct | ( | ) | 
Constructor.
Definition at line 55 of file class.ilExerciseManagementCollectFilesJob.php.
References $DIC, ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
| 
 | protected | 
Set the Excel column titles.
Definition at line 165 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Add criteria data to the excel.
| $feedback_giver | |
| $participant_id | |
| $row | |
| $col | 
Definition at line 270 of file class.ilExerciseManagementCollectFilesJob.php.
References $participant_id, copyFileToSubDirectory(), getFeedbackDirectory(), ilExcCriteria\getInstanceById(), ilExcCriteria\getInstanceByType(), and ilRating\getRatingForUserAndObject().
Referenced by collectAssignmentData().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExerciseManagementCollectFilesJob::addLink | ( | $a_row, | |
| $a_col, | |||
| $a_submission_file | |||
| ) | 
Mapping the links to use them on the excel.
| $a_row | int | 
| $a_col | int | 
| $a_submission | ilExSubmission | 
| $a_submission_file | array | 
Definition at line 406 of file class.ilExerciseManagementCollectFilesJob.php.
References $user_id, ilExSubmission\getDirectoryNameFromUserData(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, and ilExAssignment\TYPE_UPLOAD.
Referenced by collectAssignmentData().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 438 of file class.ilExerciseManagementCollectFilesJob.php.
References $i, $participant_id, ilObjUser\_lookupName(), addColumnTitles(), addCriteriaToExcel(), addLink(), collectSubmissionFiles(), createSubmissionsDirectory(), createTargetDirectory(), createUniqueTempDirectory(), FIRST_DEFAULT_REVIEW_COLUMN, FIRST_DEFAULT_SUBMIT_COLUMN, ilUtil\getASCIIFilename(), getAssignmentMembersIds(), getExtraColumnsForSubmissionFiles(), isExcelNeeded(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, and ilExAssignment\TYPE_UPLOAD.
Referenced by run().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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 213 of file class.ilExerciseManagementCollectFilesJob.php.
References $exercise, ilObject\_exists(), ilExSubmission\downloadAllAssignmentFiles(), and ilObjectFactory\getInstanceByObjId().
Referenced by collectAssignmentData().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExerciseManagementCollectFilesJob::copyFileToSubDirectory | ( | $a_directory, | |
| $a_file | |||
| ) | 
Copy a file in the Feedback_files directory TODO use the new filesystem.
| $a_directory | string | 
| $a_file | string | 
Definition at line 138 of file class.ilExerciseManagementCollectFilesJob.php.
References ilUtil\makeDirParents().
Referenced by addCriteriaToExcel().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Create the directory with the assignment title.
Definition at line 201 of file class.ilExerciseManagementCollectFilesJob.php.
References ilUtil\createDirectory().
Referenced by collectAssignmentData().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Create the directory with the assignment title.
Definition at line 187 of file class.ilExerciseManagementCollectFilesJob.php.
References $sanitized_title, ilExSubmission\getDirectoryNameFromUserData(), and ilUtil\makeDirParents().
Referenced by collectAssignmentData().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Definition at line 178 of file class.ilExerciseManagementCollectFilesJob.php.
References ilUtil\ilTempnam(), and ilUtil\makeDirParents().
Referenced by collectAssignmentData().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExerciseManagementCollectFilesJob::getAssignmentMembersIds | ( | ) | 
Definition at line 611 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExerciseManagementCollectFilesJob::getExpectedTimeOfTaskInSeconds | ( | ) | 
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 157 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::getExtraColumnsForSubmissionFiles | ( | $a_obj_id, | |
| $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.
| $a_obj_id | |
| $a_ass_id | 
Definition at line 379 of file class.ilExerciseManagementCollectFilesJob.php.
References $DIC, $ilDB, $participant_id, and $query.
Referenced by collectAssignmentData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
see also bug https://mantis.ilias.de/view.php?id=30999
Definition at line 364 of file class.ilExerciseManagementCollectFilesJob.php.
References $participant_id, and ilExSubmission\getDirectoryNameFromUserData().
Referenced by addCriteriaToExcel().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExerciseManagementCollectFilesJob::getInputTypes | ( | ) | 
Implements ILIAS\BackgroundTasks\Task.
Definition at line 73 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::getOutputType | ( | ) | 
Implements ILIAS\BackgroundTasks\Task.
Definition at line 88 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
| $a_ass_type | string | 
| $a_has_fbk | bool | 
Definition at line 253 of file class.ilExerciseManagementCollectFilesJob.php.
References ilExAssignment\TYPE_TEXT, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by collectAssignmentData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilExerciseManagementCollectFilesJob::isStateless | ( | ) | 
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 93 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::run | ( | array | $input, | 
| Observer | $observer | ||
| ) | 
run the job
| array | $input | |
| Observer | $observer | 
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 104 of file class.ilExerciseManagementCollectFilesJob.php.
References $assignment, ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input, $out, $participant_id, $target_directory, collectAssignmentData(), ilExSubmission\getDirectoryNameFromUserData(), and ilExAssignment\getInstancesByExercise().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 38 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 28 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by run().
| 
 | protected | 
Definition at line 36 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 35 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 30 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 31 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 33 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | private | 
Definition at line 22 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 39 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by addCriteriaToExcel(), collectAssignmentData(), getExtraColumnsForSubmissionFiles(), getFeedbackDirectory(), and run().
| 
 | protected | 
Definition at line 34 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by createTargetDirectory().
| 
 | protected | 
Definition at line 27 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 26 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by run().
| 
 | protected | 
Definition at line 32 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 37 of file class.ilExerciseManagementCollectFilesJob.php.
| 
 | protected | 
Definition at line 29 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by addLink().
| const ilExerciseManagementCollectFilesJob::BG_COLOR = "255,255,255" | 
Definition at line 43 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::FBK_DIRECTORY = "Feedback_files" | 
Definition at line 41 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::FIRST_DEFAULT_REVIEW_COLUMN = 5 | 
Definition at line 50 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
| const ilExerciseManagementCollectFilesJob::FIRST_DEFAULT_SUBMIT_COLUMN = 4 | 
Definition at line 49 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
| const ilExerciseManagementCollectFilesJob::LINK_COLOR = "0,0,255" | 
Definition at line 42 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::PARTICIPANT_FIRSTNAME_COLUMN = 1 | 
Definition at line 46 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::PARTICIPANT_LASTNAME_COLUMN = 0 | 
Definition at line 45 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::PARTICIPANT_LOGIN_COLUMN = 2 | 
Definition at line 47 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::SUBMISSION_DATE_COLUMN = 3 | 
Definition at line 48 of file class.ilExerciseManagementCollectFilesJob.php.