3declare(strict_types=1);
33 $this->
logger = $DIC->logger()->cal();
43 new SingleType(ilCalendarCopyDefinition::class)
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);
Description of class class.
getCopyDefinitions()
Get copy definitions.
Description of class class.
getInputTypes()
@inheritDoc
createTargetDirectory(string $a_tmpdir)
run(array $input, Observer $observer)
@inheritDoc
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
copyFiles(string $tmpdir, ilCalendarCopyDefinition $definition)
Copy files.
__construct()
Constructor.
createUniqueTempDirectory()
getOutputType()
@inheritDoc
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.
Component logger with individual log levels by component id.