3declare(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);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
hasMemberExportFile(string $a_export_name)
__construct(int $a_container_id=0)
getMemberExportDirectory()
Get path of export directory.
getPathPrefix()
@inheritDoc
initMemberExportDirectory()
Init export directory and create it if it does not exist.
deleteMemberExportFile(string $a_export_name)
addMemberExportFile(string $a_data, string $a_rel_name)
getMemberExportFile(string $a_name)
getPathPostfix()
@inheritDoc
getAbsolutePath()
Calculates the full path on the filesystem.
writeToFile(string $a_data, $a_absolute_path)
deleteFile(string $a_abs_name)
fileExists(string $a_absolute_path)
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
Component logger with individual log levels by component id.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc