54 : bool
55 {
56 $bucket = new BasicBucket();
57 $bucket->setUserId($this->user_id);
58
59 $this->
logger->debug(
"* Create task 'collect_data_job' using the following values:");
60 $this->
logger->debug(
"job class = " . DownloadAllCollectFilesJob::class);
61 $this->
logger->debug(
"mcst_id = " . $this->mcst_id .
", mcst_ref_id = " . $this->mcst_ref_id .
", user_id = " . (
int) $this->user_id);
62
63 $collect_data_job = $this->task_factory->createTask(
64 DownloadAllCollectFilesJob::class,
65 [
66 (int) $this->user_id,
67 (int) $this->mcst_ref_id
68 ]
69 );
70
71 $this->
logger->debug(
"* Create task 'zip job' using the following values:");
72 $this->
logger->debug(
"job class = " . DownloadAllZipJob::class);
73 $this->
logger->debug(
"sending as input the task called->collect_data_job");
74
75 $zip_job = $this->task_factory->createTask(DownloadAllZipJob::class, [$collect_data_job]);
76
78 $bucket->setTitle($download_name);
79
80 $this->
logger->debug(
"* Create task 'download_interaction' using the following values:");
81 $this->
logger->debug(
"job class = " . DownloadAllZipInteraction::class);
82 $this->
logger->debug(
"download_name which is the same as bucket title = " . $download_name .
" + the zip_job task");
83
84 $download_interaction = $this->task_factory->createTask(DownloadAllZipInteraction::class, [$zip_job, $download_name]);
85
86
87 $bucket->setTask($download_interaction);
88 $this->task_manager->run($bucket);
89 return true;
90 }
static getASCIIFilename(string $a_filename)
static _lookupTitle(int $obj_id)