|
ILIAS
release_8 Revision v8.24
|
Inheritance 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 (string $a_directory, string $a_file) | |
| Copy a file in the Feedback_files directory TODO use the new filesystem. More... | |
| getExpectedTimeOfTaskInSeconds () | |
| 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, array $a_submission_file) | |
| getAssignmentMembersIds () | |
| get ONLY the members ids for this assignment More... | |
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 (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... | |
Protected Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| checkTypes ($values) | |
| extractType ($value) | |
Protected Attributes | |
| 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 |
Protected Attributes inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| array | $input = [] |
| ILIAS BackgroundTasks Value | $output |
Definition at line 30 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::__construct | ( | ) |
Constructor.
@noinspection PhpUndefinedMethodInspection
Definition at line 62 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.
Here is the call graph for this function:
|
protected |
Set the Excel column titles.
PhpOffice\PhpSpreadsheet\Exception
Definition at line 171 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::addLink | ( | int | $a_row, |
| int | $a_col, | ||
| array | $a_submission_file | ||
| ) |
Definition at line 404 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
write assignment data to excel file
| int | $assignment_id |
PhpOffice\PhpSpreadsheet\Exception
Definition at line 447 of file class.ilExerciseManagementCollectFilesJob.php.
References $i, ilObjUser\_lookupName(), ilFileUtils\getASCIIFilename(), ilExAssignmentTeam\getTeamId(), ILIAS\Repository\lng(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExerciseManagementCollectFilesJob::copyFileToSubDirectory | ( | string | $a_directory, |
| string | $a_file | ||
| ) |
Copy a file in the Feedback_files directory TODO use the new filesystem.
Definition at line 146 of file class.ilExerciseManagementCollectFilesJob.php.
References ilFileUtils\makeDirParents().
Here is the call graph for this function:
|
protected |
Create the directory with the assignment title.
Definition at line 207 of file class.ilExerciseManagementCollectFilesJob.php.
References ilFileUtils\createDirectory(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
Here is the call graph for this function:
|
protected |
Create the directory with the assignment title.
Definition at line 193 of file class.ilExerciseManagementCollectFilesJob.php.
References $path, ilExSubmission\getDirectoryNameFromUserData(), and ilFileUtils\makeDirParents().
Here is the call graph for this function:
|
protected |
Definition at line 184 of file class.ilExerciseManagementCollectFilesJob.php.
References ilFileUtils\ilTempnam(), and ilFileUtils\makeDirParents().
Here is the call graph for this function:| ilExerciseManagementCollectFilesJob::getAssignmentMembersIds | ( | ) |
get ONLY the members ids for this assignment
Definition at line 641 of file class.ilExerciseManagementCollectFilesJob.php.
References $DIC, $ilDB, and ilObjUser\userExists().
Here is the call graph for this function:| ilExerciseManagementCollectFilesJob::getExpectedTimeOfTaskInSeconds | ( | ) |
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 162 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 383 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
see also bug https://mantis.ilias.de/view.php?id=30999
Definition at line 371 of file class.ilExerciseManagementCollectFilesJob.php.
References ilExSubmission\getDirectoryNameFromUserData().
Here is the call graph for this function:| ilExerciseManagementCollectFilesJob::getInputTypes | ( | ) |
Implements ILIAS\BackgroundTasks\Task.
Definition at line 81 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::getOutputType | ( | ) |
Implements ILIAS\BackgroundTasks\Task.
Definition at line 93 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 257 of file class.ilExerciseManagementCollectFilesJob.php.
References ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
| ilExerciseManagementCollectFilesJob::isStateless | ( | ) |
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 98 of file class.ilExerciseManagementCollectFilesJob.php.
| ilExerciseManagementCollectFilesJob::run | ( | array | $input, |
| Observer | $observer | ||
| ) |
run the job
ILIAS\BackgroundTasks\Exceptions\InvalidArgumentException
PhpOffice\PhpSpreadsheet\Exception
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 111 of file class.ilExerciseManagementCollectFilesJob.php.
References $target_directory, and collectAssignmentData().
Here is the call graph for this function:
|
protected |
Definition at line 56 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 46 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 54 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 53 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 48 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 49 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 51 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 43 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 57 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 52 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 45 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 44 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by run().
|
protected |
Definition at line 50 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 55 of file class.ilExerciseManagementCollectFilesJob.php.
|
protected |
Definition at line 47 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::BG_COLOR = "255,255,255" |
Definition at line 34 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::FBK_DIRECTORY = "Feedback_files" |
Definition at line 32 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::FIRST_DEFAULT_REVIEW_COLUMN = 5 |
Definition at line 41 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::FIRST_DEFAULT_SUBMIT_COLUMN = 4 |
Definition at line 40 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::LINK_COLOR = "0,0,255" |
Definition at line 33 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::PARTICIPANT_FIRSTNAME_COLUMN = 1 |
Definition at line 37 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::PARTICIPANT_LASTNAME_COLUMN = 0 |
Definition at line 36 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::PARTICIPANT_LOGIN_COLUMN = 2 |
Definition at line 38 of file class.ilExerciseManagementCollectFilesJob.php.
| const ilExerciseManagementCollectFilesJob::SUBMISSION_DATE_COLUMN = 3 |
Definition at line 39 of file class.ilExerciseManagementCollectFilesJob.php.