ILIAS
release_8 Revision v8.19
|
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... | |
![]() | |
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 ($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 |
![]() | |
array | $input = [] |
ILIAS BackgroundTasks Value | $output |
Definition at line 30 of file class.ilExerciseManagementCollectFilesJob.php.
ilExerciseManagementCollectFilesJob::__construct | ( | ) |
Constructor.
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.
|
protected |
Set the Excel column titles.
Definition at line 171 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
ilExerciseManagementCollectFilesJob::addLink | ( | int | $a_row, |
int | $a_col, | ||
array | $a_submission_file | ||
) |
Definition at line 404 of file class.ilExerciseManagementCollectFilesJob.php.
References ilExSubmission\getDirectoryNameFromUserData(), 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 447 of file class.ilExerciseManagementCollectFilesJob.php.
References $i, $participant_id, ilObjUser\_lookupName(), addColumnTitles(), addLink(), createSubmissionsDirectory(), createTargetDirectory(), createUniqueTempDirectory(), ilFileUtils\getASCIIFilename(), getAssignmentMembersIds(), getExtraColumnsForSubmissionFiles(), ilExAssignmentTeam\getTeamId(), isExcelNeeded(), ILIAS\Repository\lng(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by run().
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().
Referenced by isExcelNeeded().
|
protected |
Create the directory with the assignment title.
Definition at line 207 of file class.ilExerciseManagementCollectFilesJob.php.
References $exercise, ilObject\_exists(), ilFileUtils\createDirectory(), ilExSubmission\downloadAllAssignmentFiles(), ilObjectFactory\getInstanceByObjId(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
Referenced by collectAssignmentData().
|
protected |
Create the directory with the assignment title.
Definition at line 193 of file class.ilExerciseManagementCollectFilesJob.php.
References $path, $sanitized_title, ilExSubmission\getDirectoryNameFromUserData(), and ilFileUtils\makeDirParents().
Referenced by collectAssignmentData().
|
protected |
Definition at line 184 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 641 of file class.ilExerciseManagementCollectFilesJob.php.
References $DIC, $ilDB, and ilObjUser\userExists().
Referenced by collectAssignmentData().
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.
References $DIC, $ilDB, $participant_id, and $query.
Referenced by collectAssignmentData().
|
protected |
see also bug https://mantis.ilias.de/view.php?id=30999
Definition at line 371 of file class.ilExerciseManagementCollectFilesJob.php.
References ilExSubmission\getDirectoryNameFromUserData().
Referenced by isExcelNeeded().
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 $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 98 of file class.ilExerciseManagementCollectFilesJob.php.
ilExerciseManagementCollectFilesJob::run | ( | array | $input, |
Observer | $observer | ||
) |
run the job
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 111 of file class.ilExerciseManagementCollectFilesJob.php.
References $out, $participant_id, $target_directory, collectAssignmentData(), ilExSubmission\getDirectoryNameFromUserData(), and ilExAssignment\getInstancesByExercise().
|
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.
Referenced by collectAssignmentData(), getExtraColumnsForSubmissionFiles(), isExcelNeeded(), and run().
|
protected |
Definition at line 52 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by createTargetDirectory().
|
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.