3 declare(strict_types=1);
33 $this->
logger = $DIC->logger()->cal();
43 new SingleType(ilCalendarCopyDefinition::class)
69 $cal_copy_def = $input[0];
71 $this->
logger->info(
'Called copy files job');
73 $this->target_directory = $cal_copy_def->getTempDir();
82 $this->
copyFiles($targetdir, $cal_copy_def);
87 $this->
logger->debug(
'Returning new tempdirectory: ' . $targetdir);
90 $out->setValue($targetdir);
103 $this->
logger->info(
'New temp directory: ' . $tmpdir);
111 $this->
logger->info(
'New final directory: ' . $final_dir);
124 $this->
logger->notice(
'Cannot find file: ' . $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR]);
129 $tmpdir .
'/' . dirname($copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR])
134 $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR] .
136 $tmpdir .
'/' . $copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR]
140 $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR],
141 $tmpdir .
'/' . $copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR]
getCopyDefinitions()
Get copy definitions.
run(array $input, Observer $observer)
createTargetDirectory(string $a_tmpdir)
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
createUniqueTempDirectory()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
static ilTempnam(?string $a_temp_path=null)
Returns a unique and non existing Path for e temporary file or directory.
Description of class class.
Description of class class.
copyFiles(string $tmpdir, ilCalendarCopyDefinition $definition)
Copy files.
__construct()
Constructor.