19 declare(strict_types=1);
    42         return hash(
"sha256", self::class);
    47         return "Unzip files from $this->zip_path into temporary directory";
    66             $tmp_dir . DIRECTORY_SEPARATOR . 
"web_data.zip" => $tmp_dir . DIRECTORY_SEPARATOR . 
"web_data",
    67             $tmp_dir . DIRECTORY_SEPARATOR . 
"Customizing.zip" => $tmp_dir . DIRECTORY_SEPARATOR . 
"Customizing",
    68             $tmp_dir . DIRECTORY_SEPARATOR . 
"data.zip" => $tmp_dir . DIRECTORY_SEPARATOR . 
"data",
    69             $tmp_dir . DIRECTORY_SEPARATOR . 
"dump.zip" => $tmp_dir
    74         foreach ($dirs as $source => $destination) {
    75             if (!file_exists($source)) {
    89         return file_exists($this->zip_path);
   101             RecursiveIteratorIterator::CHILD_FIRST
   104         foreach ($files as $file_info) {
   105             if ($file_info->isDir()) {
   106                 rmdir($file_info->getRealPath());
   109             unlink($file_info->getRealPath());
   112         if ($delete_base_dir) {
   117     protected function extractZip(
string $source, 
string $destination): void
   122             $zip->extractTo($destination);
 getLabel()
Get a label that describes this objective. 
 
An objective is a desired state of the system that is supposed to be created by the setup...
 
extractZip(string $source, string $destination)
 
isApplicable(Environment $environment)
Get to know whether the objective is applicable. 
 
achieve(Environment $environment)
Objectives can be achieved. 
 
deleteRecursive(string $path, bool $delete_base_dir=false)
 
getHash()
Get a hash for this objective. 
 
getPreconditions(Environment $environment)
Objectives might depend on other objectives. 
 
Signals that some goal won't be achievable by actions of the system ever. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
An environment holds resources to be used in the setup process. 
 
getConfigFor(string $component)
 
isNotable()
Get to know if this is an interesting objective for a human. 
 
__construct(string $zip_path)