◆ __construct()
ilExportZipBuiltObjective::__construct |
( |
Setup\Config |
$config | ) |
|
◆ achieve()
ilExportZipBuiltObjective::achieve |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 100 of file class.ilExportZipBuiltObjective.php.
References deleteDirRecursive(), ilExportMetadataGatheredObjective\EXPORT_META, and ILIAS\Setup\Environment\getConfigFor().
103 file_put_contents($this->tmp_dir .
"/meta.txt", implode(
"\n", $meta) .
"\n", FILE_APPEND);
108 $this->addFolderToZip($this->tmp_dir .
"/web_data", $this->tmp_dir .
"/web_data.zip");
109 $this->addFolderToZip($this->tmp_dir .
"/Customizing", $this->tmp_dir .
"/Customizing.zip");
110 $this->addFolderToZip($this->tmp_dir .
"/public/data", $this->tmp_dir .
"/data.zip");
111 $this->addFolderToZip($this->tmp_dir .
"/dump", $this->tmp_dir .
"/dump.zip");
118 $this->addFolderToZip($this->tmp_dir, $this->cwd .
"/" . self::FILENAME);
deleteDirRecursive(string $path)
◆ createTempDir()
ilExportZipBuiltObjective::createTempDir |
( |
| ) |
|
◆ deleteDirRecursive()
ilExportZipBuiltObjective::deleteDirRecursive |
( |
string |
$path | ) |
|
|
protected |
Definition at line 165 of file class.ilExportZipBuiltObjective.php.
Referenced by achieve().
167 if (is_file(
$path)) {
174 RecursiveIteratorIterator::CHILD_FIRST
177 foreach ($files as $file_info) {
178 if ($file_info->isDir()) {
179 rmdir($file_info->getRealPath());
182 unlink($file_info->getRealPath());
◆ getHash()
ilExportZipBuiltObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilExportZipBuiltObjective::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilExportZipBuiltObjective::getPreconditions |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 70 of file class.ilExportZipBuiltObjective.php.
76 new Setup\ObjectiveCollection(
81 $this->tmp_dir .
"/public/data/" 87 $this->tmp_dir .
"/web_data/"
A wrapper around an objective that adds some preconditions.
◆ isApplicable()
ilExportZipBuiltObjective::isApplicable |
( |
Setup\Environment |
$environment | ) |
|
◆ isNotable()
ilExportZipBuiltObjective::isNotable |
( |
| ) |
|
◆ $cwd
string ilExportZipBuiltObjective::$cwd |
|
protected |
◆ FILENAME
const ilExportZipBuiltObjective::FILENAME = "ILIAS_EXPORT.zip" |
|
protected |
The documentation for this class was generated from the following file: