36 $this->logger =
$GLOBALS[
'DIC']->logger()->cal();
45 new SingleType(ilCalendarCopyDefinition::class)
70 $cal_copy_def = $input[0];
72 $this->logger->info(
'Called copy files job');
74 $this->target_directory = $cal_copy_def->getTempDir();
83 $this->
copyFiles($targetdir, $cal_copy_def);
88 $this->logger->debug(
'Returning new tempdirectory: ' . $targetdir);
91 $out->setValue($targetdir);
104 $this->logger->info(
'New temp directory: ' . $tmpdir);
112 $this->logger->info(
'New final directory: ' . $final_dir);
125 $this->logger->notice(
'Cannot find file: ' . $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR]);
130 $tmpdir .
'/' . dirname($copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR])
133 $this->logger->debug(
135 $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR] .
137 $tmpdir .
'/' . $copy_task[ilCalendarCopyDefinition::COPY_TARGET_DIR]
141 $copy_task[ilCalendarCopyDefinition::COPY_SOURCE_DIR],
142 $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()
static ilTempnam($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.
__construct()
Constructor.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
createTargetDirectory($a_tmpdir)