63 : bool
64 {
66 $bucket->setUserId($this->user_id);
67
68 $this->
logger->debug(
"* Create task 'collect_data_job' using the following values:");
69 $this->
logger->debug(
"job class = " . ilExerciseManagementCollectFilesJob::class);
70 $this->
logger->debug(
"exc_id = " . $this->exc_id .
", exc_ref_id = " . $this->exc_ref_id .
", ass_id = " . (
int) $this->ass_id .
", participant_id = " . (
int) $this->participant_id .
", user_id = " . $this->user_id);
71
72 $sel_participants = $this->selected_participants
73 ? implode(",", $this->selected_participants)
74 : "";
75 $collect_data_job = $this->task_factory->createTask(
76 ilExerciseManagementCollectFilesJob::class,
77 [
78 $this->exc_id,
79 $this->exc_ref_id,
80 (int) $this->ass_id,
81 (int) $this->participant_id,
82 $this->user_id,
83 $sel_participants
84 ]
85 );
86
87 $this->
logger->debug(
"* Create task 'zip job' using the following values:");
88 $this->
logger->debug(
"job class = " . ilSubmissionsZipJob::class);
89 $this->
logger->debug(
"sending as input the task called->collect_data_job");
90
91 $zip_job = $this->task_factory->createTask(ilSubmissionsZipJob::class, [$collect_data_job]);
92
93 if ($this->participant_id > 0) {
96 } else {
98 $bucket->setTitle($download_name);
99 }
100
101
102 $this->
logger->debug(
"* Create task 'download_interaction' using the following values:");
103 $this->
logger->debug(
"job class = " . ilExDownloadSubmissionsZipInteraction::class);
104 $this->
logger->debug(
"download_name which is the same as bucket title = " . $download_name .
" + the zip_job task");
105
106 $download_interaction = $this->task_factory->createTask(ilExDownloadSubmissionsZipInteraction::class, [$zip_job, $download_name]);
107
108
109 $bucket->setTask($download_interaction);
110 $this->task_manager->run($bucket);
111 return true;
112 }
getParticipantBucketTitle()
static lookupTitle(int $a_id)
static getDirectoryNameFromUserData(int $a_user_id)
static getASCIIFilename(string $a_filename)