24 include_once(
'Services/FileSystem/classes/class.ilFileSystemStorage.php');
66 public static function _clone($a_source_id, $a_target_id)
162 while ($file = readdir($dp)) {
167 if (preg_match(
"/^([0-9]{10})_[a-zA-Z]*_export_([a-z]+)_([0-9]+)\.[a-z]+$/", $file, $matches)
and $matches[3] == $this->
getContainerId()) {
168 $timest = $matches[1];
169 $file_info[
'name'] = $matches[0];
170 $file_info[
'timest'] = $matches[1];
171 $file_info[
'type'] = $matches[2];
172 $file_info[
'id'] = $matches[3];
175 $files[$timest] = $file_info;
186 if (@file_exists($file_name)) {
187 return file_get_contents($file_name);
249 $this->log->write(
'Cannot write to file: ' . $this->
getArchiveDirectory() .
'/' . $a_rel_name);
getMemberExportFile($a_name)
static makeDirParents($a_dir)
Create a new directory and all parent directories.
initMemberExportDirectory()
Init export directory and create it if it does not exist.
__construct($a_container_id=0)
Constructor.
getMemberExportDirectory()
Get path of export directory.
getOnlineLink($a_rel_name)
getArchiveDirectory()
Get archive directory.
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
writeArchiveFile($a_data, $a_rel_name)
Write archive string to file.
deleteDirectory($a_abs_name)
Delete directory.
static _clone($a_source_id, $a_target_id)
Clone course data directory.
getInfoDirectory()
Get course info directory.
createArchiveOnlineVersion($a_rel_name)
getPathPostfix()
Implementation of abstract method.
static _copyDirectory($a_source, $a_target)
Copy directory and all contents.
addArchiveSubDirectory($a_name)
Add subdirectory for archives.
addMemberExportFile($a_data, $a_rel_name)
Add new export file.
writeToFile($a_data, $a_absolute_path)
Write data to file.
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file
getAbsolutePath()
Get absolute path of storage directory.
getPathPrefix()
Implementation of abstract method.
initInfoDirectory()
init info directory
getMemberExportFiles()
Get all member export files.
deleteArchive($a_rel_name)
Delete one archive.
deleteMemberExportFile($a_export_name)
Delete Member Export File.
static getWebspaceDir($mode="filesystem")
get webspace directory
initArchiveDirectory()
init Archive Directory
deleteFile($a_abs_name)
Delete file.
zipArchive($a_rel_name, $a_zip_name)
Zip archive directory.