45 $this->
logger = $DIC->logger()->cal();
97 $zip_name = $input[1];
98 $download_name = $input[0];
100 $this->
logger->debug(
'User interaction download zip ' . $input[0]->
getValue() .
' as ' 103 if ($user_selected_option->
getValue() !== self::OPTION_DOWNLOAD) {
104 $this->
logger->info(
'Download canceled');
106 $filesystem = $DIC->filesystem()->temp();
109 $path = LegacyPathHelper::createRelativePath($zip_name->getValue());
113 if (!is_null(
$path) && $filesystem->has(
$path)) {
114 $filesystem->deleteDir(dirname(
$path));
120 $this->
logger->info(
"Delivering File.");
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Description of class class.
static deliverFileAttached(string $path_to_file, ?string $download_file_name=null, ?string $mime_type=null, bool $delete_file=false)
getInputTypes()
Type[] A list of types that are taken as input.
interaction(array $input, Option $user_selected_option, Bucket $bucket)
canBeSkipped(array $input)
Decide whether the UserInteraction is presented to the user and he has to decide or user UserInteract...