81 {
83 $bucket->setUserId($this->user_id);
84
85 $this->logger->debug("* Create task 'collect_data_job' using the following values:");
86 $this->logger->debug("job class = " . ilExerciseManagementCollectFilesJob::class);
87 $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 = " . (int) $this->user_id);
88
89 $collect_data_job = $this->task_factory->createTask(
90 ilExerciseManagementCollectFilesJob::class,
91 [
92 (int) $this->exc_id,
93 (int) $this->exc_ref_id,
94 (int) $this->ass_id,
95 (int) $this->participant_id,
96 (int) $this->user_id
97 ]
98 );
99
100 $this->logger->debug("* Create task 'zip job' using the following values:");
101 $this->logger->debug("job class = " . ilSubmissionsZipJob::class);
102 $this->logger->debug("sending as input the task called->collect_data_job");
103
104 $zip_job = $this->task_factory->createTask(ilSubmissionsZipJob::class, [$collect_data_job]);
105
106 if ($this->participant_id > 0) {
109 } else {
111 $bucket->setTitle($download_name);
112 }
113
114
115 $this->logger->debug("* Create task 'download_interaction' using the following values:");
116 $this->logger->debug("job class = " . ilExDownloadSubmissionsZipInteraction::class);
117 $this->logger->debug("download_name which is the same as bucket title = " . $download_name . " + the zip_job task");
118
119 $download_interaction = $this->task_factory->createTask(ilExDownloadSubmissionsZipInteraction::class, [$zip_job, $download_name]);
120
121
122 $bucket->setTask($download_interaction);
123 $this->task_manager->run($bucket);
124 return true;
125 }
getParticipantBucketTitle()
static lookupTitle($a_id)
Lookup title.
static getDirectoryNameFromUserData($a_user_id)
static getASCIIFilename($a_filename)
convert utf8 to ascii filename