24 include_once(
'Services/FileSystem/classes/class.ilFileSystemStorage.php');
64 public static function _clone($a_source_id, $a_target_id)
160 while (
$file = readdir($dp)) {
165 if (preg_match(
"/^([0-9]{10})_[a-zA-Z]*_export_([a-z]+)_([0-9]+)\.[a-z]+$/",
$file, $matches) and $matches[3] == $this->
getContainerId()) {
166 $timest = $matches[1];
167 $file_info[
'name'] = $matches[0];
168 $file_info[
'timest'] = $matches[1];
169 $file_info[
'type'] = $matches[2];
170 $file_info[
'id'] = $matches[3];
173 $files[$timest] = $file_info;
184 if (@file_exists($file_name)) {
185 return file_get_contents($file_name);
247 $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
Create styles array
The data for the language used.
getAbsolutePath()
Get absolute path of storage directory.
getPathPrefix()
Implementation of abstract method.
initInfoDirectory()
init info directory
getMemberExportFiles()
Get all member export files.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
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.