19 declare(strict_types=0);
37 $this->
logger = $DIC->logger()->crs();
41 public static function _clone(
int $a_source_id,
int $a_target_id): bool
49 $target->deleteDirectory($target->getMemberExportDirectory());
95 while ($file = readdir($dp)) {
101 "/^([0-9]{10})_[a-zA-Z]*_export_([a-z]+)_([0-9]+)\.[a-z]+$/",
105 $timest = $matches[1];
106 $file_info[
'name'] = $matches[0];
107 $file_info[
'timest'] = $matches[1];
108 $file_info[
'type'] = $matches[2];
109 $file_info[
'id'] = $matches[3];
112 $files[$timest] = $file_info;
123 if (file_exists($file_name)) {
124 return file_get_contents($file_name);
initMemberExportDirectory()
getMemberExportDirectory()
hasMemberExportFile(string $a_export_name)
getMemberExportFile(string $a_name)
static _clone(int $a_source_id, int $a_target_id)
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
deleteMemberExportFile(string $a_export_name)
getPathPostfix()
Implementation of abstract method protected.
fileExists(string $a_absolute_path)
addMemberExportFile($a_data, $a_rel_name)
getAbsolutePath()
Calculates the full path on the filesystem.
writeToFile(string $a_data, $a_absolute_path)
getPathPrefix()
Implementation of abstract method protected.
__construct(Container $dic, ilPlugin $plugin)
__construct(int $a_container_id=0)
static _copyDirectory(string $a_sdir, string $a_tdir)
deleteFile(string $a_abs_name)