36 $this->logger =
$GLOBALS[
'DIC']->logger()->cal();
45 new SingleType(ilCalendarCopyDefinition::class)
77 $this->logger->info(
'Called copy files job');
79 $this->target_directory = $cal_copy_def->getTempDir();
88 $this->
copyFiles($targetdir, $cal_copy_def);
93 $this->logger->debug(
'Returning new tempdirectory: ' . $targetdir);
96 $out->setValue($targetdir);
109 $this->logger->info(
'New temp directory: ' . $tmpdir);
117 $this->logger->info(
'New final directory: ' . $final_dir);
138 $this->logger->debug(
An exception for terminatinating execution or to throw for unit testing.
Description of class class.
getCopyDefinitions()
Get copy definitions.
Description of class class.
run(array $input, Observer $observer)
run the job
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
createTargetDirectory($a_tmpdir)
__construct()
Constructor.
copyFiles($tmpdir, ilCalendarCopyDefinition $definition)
Copy files.
createUniqueTempDirectory()
static ilTempnam($a_temp_path=null)
Create a temporary file in an ILIAS writable directory.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.