19 declare(strict_types=1);
46 return 'StudyProgramme';
67 while ($file = readdir($dp)) {
73 "/^([0-9]{10})_[a-zA-Z]*_export_([a-z]+)_([0-9]+)\.[a-z]+$/",
79 $timest = $matches[1];
80 $file_info[
'name'] = $matches[0];
81 $file_info[
'timest'] = $matches[1];
82 $file_info[
'type'] = $matches[2];
83 $file_info[
'id'] = $matches[3];
86 $files[$timest] = $file_info;
97 if (file_exists($file_name)) {
98 return file_get_contents($file_name);
100 throw new \Exception(
'file not found:' . $filename);
getMemberExportDirectory()
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
deleteMemberExportFile(string $filename)
initMemberExportDirectory()
__construct(int $a_container_id=0)
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)
getMemberExportFile(string $filename)
__construct(Container $dic, ilPlugin $plugin)
deleteFile(string $a_abs_name)
hasMemberExportFile(string $filename)