3 declare(strict_types=0);
38 $this->
logger = $DIC->logger()->crs();
42 public static function _clone(
int $a_source_id,
int $a_target_id): bool
50 $target->deleteDirectory($target->getMemberExportDirectory());
96 while ($file = readdir($dp)) {
102 "/^([0-9]{10})_[a-zA-Z]*_export_([a-z]+)_([0-9]+)\.[a-z]+$/",
106 $timest = $matches[1];
107 $file_info[
'name'] = $matches[0];
108 $file_info[
'timest'] = $matches[1];
109 $file_info[
'type'] = $matches[2];
110 $file_info[
'id'] = $matches[3];
113 $files[$timest] = $file_info;
124 if (file_exists($file_name)) {
125 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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)