ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Description of class class. More...
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 () | |
| |
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... | |
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.
References $title.
Referenced by collectAssignmentData().
|
protected |
Add criteria data to the excel.
$feedback_giver | |
$participant_id | |
$row | |
$col |
Definition at line 270 of file class.ilExerciseManagementCollectFilesJob.php.
References $files, $participant_id, $row, $values, copyFileToSubDirectory(), ilExcCriteria\getInstanceById(), ilExcCriteria\getInstanceByType(), and ilRating\getRatingForUserAndObject().
Referenced by collectAssignmentData().
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 394 of file class.ilExerciseManagementCollectFilesJob.php.
References $user_id, ilExSubmission\getDirectoryNameFromUserData(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, and ilExAssignment\TYPE_UPLOAD.
Referenced by collectAssignmentData().
|
protected |
TODO refactor when 0 bugs:
Definition at line 426 of file class.ilExerciseManagementCollectFilesJob.php.
References $i, $participant_id, $row, ilObjUser\_lookupName(), addColumnTitles(), addCriteriaToExcel(), addLink(), collectSubmissionFiles(), createSubmissionsDirectory(), createTargetDirectory(), createUniqueTempDirectory(), ilUtil\getASCIIFilename(), getAssignmentMembersIds(), getExtraColumnsForSubmissionFiles(), isExcelNeeded(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, and ilExAssignment\TYPE_UPLOAD.
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 213 of file class.ilExerciseManagementCollectFilesJob.php.
References $exercise, ilObject\_exists(), ilExSubmission\downloadAllAssignmentFiles(), and ilObjectFactory\getInstanceByObjId().
Referenced by collectAssignmentData().
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\createDirectory().
Referenced by addCriteriaToExcel().
|
protected |
Create the directory with the assignment title.
Definition at line 201 of file class.ilExerciseManagementCollectFilesJob.php.
References ilUtil\createDirectory().
Referenced by collectAssignmentData().
|
protected |
Create the directory with the assignment title.
Definition at line 187 of file class.ilExerciseManagementCollectFilesJob.php.
References $path, $sanitized_title, ilExSubmission\getDirectoryNameFromUserData(), and ilUtil\makeDirParents().
Referenced by collectAssignmentData().
|
protected |
Definition at line 178 of file class.ilExerciseManagementCollectFilesJob.php.
References ilUtil\ilTempnam(), and ilUtil\makeDirParents().
Referenced by collectAssignmentData().
ilExerciseManagementCollectFilesJob::getAssignmentMembersIds | ( | ) |
Definition at line 607 of file class.ilExerciseManagementCollectFilesJob.php.
Referenced by collectAssignmentData().
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 367 of file class.ilExerciseManagementCollectFilesJob.php.
References $DIC, $ilDB, $participant_id, $query, and $row.
Referenced by collectAssignmentData().
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().
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, $out, $participant_id, $target_directory, collectAssignmentData(), ilExSubmission\getDirectoryNameFromUserData(), and ilExAssignment\getInstancesByExercise().
|
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(), 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.
const ilExerciseManagementCollectFilesJob::FIRST_DEFAULT_SUBMIT_COLUMN = 4 |
Definition at line 49 of file class.ilExerciseManagementCollectFilesJob.php.
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.