3 declare(strict_types=1);
39 $this->
logger = $DIC->logger()->grp();
80 while ($file = readdir($dp)) {
86 preg_match(
"/^([0-9]{10})_[a-zA-Z]*_export_([a-z]+)_([0-9]+)\.[a-z]+$/", $file, $matches) &&
88 $timest = $matches[1];
89 $file_info[
'name'] = $matches[0];
90 $file_info[
'timest'] = $matches[1];
91 $file_info[
'type'] = $matches[2];
92 $file_info[
'id'] = $matches[3];
95 $files[$timest] = $file_info;
105 if (file_exists($file_name)) {
106 return file_get_contents($file_name);
deleteMemberExportFile(string $a_export_name)
getMemberExportDirectory()
Get path of export directory.
initMemberExportDirectory()
Init export directory and create it if it does not exist.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
addMemberExportFile(string $a_data, string $a_rel_name)
getMemberExportFile(string $a_name)
__construct(int $a_container_id=0)
fileExists(string $a_absolute_path)
hasMemberExportFile(string $a_export_name)
getAbsolutePath()
Calculates the full path on the filesystem.
writeToFile(string $a_data, $a_absolute_path)
__construct(Container $dic, ilPlugin $plugin)
deleteFile(string $a_abs_name)