36 $this->logger =
$GLOBALS[
'DIC']->logger()->cal();
45 new SingleType(ilCalendarCopyDefinition::class)
75 $cal_copy_def = $input[0];
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);
130 $this->logger->notice(
'Cannot find file: ' . $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR]);
135 $tmpdir .
'/' . dirname($copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR])
138 $this->logger->debug(
140 $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR] .
142 $tmpdir .
'/' . $copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR]
146 $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR],
147 $tmpdir .
'/' . $copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR]
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getCopyDefinitions()
Get copy definitions.
run(array $input, Observer $observer)
run the job
copyFiles($tmpdir, ilCalendarCopyDefinition $definition)
Copy files.
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
createUniqueTempDirectory()
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Create styles array
The data for the language used.
static ilTempnam($a_temp_path=null)
Create a temporary file in an ILIAS writable directory.
Description of class class.
Description of class class.
__construct()
Constructor.
createTargetDirectory($a_tmpdir)