45 $this->
logger = $DIC->logger()->cal();
96 $zip_name = $input[1];
97 $download_name = $input[0];
99 $this->
logger->debug(
'User interaction download zip ' . $input[0]->
getValue() .
' as ' 102 if ($user_selected_option->
getValue() != self::OPTION_DOWNLOAD) {
103 $this->
logger->info(
'Download canceled');
105 $filesystem = $DIC->filesystem()->temp();
108 $path = LegacyPathHelper::createRelativePath($zip_name->getValue());
112 if (!is_null(
$path) && $filesystem->has(
$path)) {
113 $filesystem->deleteDir(dirname(
$path));
119 $this->
logger->info(
"Delivering File.");
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
canBeSkipped(array $input)
Decide whether the UserInteraction is presented to the user and he has to decide or user UserInteract...