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