ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Public Member Functions | |
__construct (string $zip_path) | |
getHash () | |
Get a hash for this objective. More... | |
getLabel () | |
Get a label that describes this objective. More... | |
isNotable () | |
Get to know if this is an interesting objective for a human. More... | |
getPreconditions (Environment $environment) | |
Objectives might depend on other objectives. More... | |
achieve (Environment $environment) | |
Objectives can be achieved. More... | |
isApplicable (Environment $environment) | |
Get to know whether the objective is applicable. More... | |
Protected Member Functions | |
deleteRecursive (string $path, bool $delete_base_dir=false) | |
extractZip (string $source, string $destination) | |
Protected Attributes | |
string | $zip_path |
Definition at line 31 of file ImportFileUnzippedFileObjective.php.
ILIAS\Setup\CLI\ImportFileUnzippedFileObjective::__construct | ( | string | $zip_path | ) |
Definition at line 35 of file ImportFileUnzippedFileObjective.php.
References ILIAS\Setup\CLI\ImportFileUnzippedFileObjective\$zip_path.
ILIAS\Setup\CLI\ImportFileUnzippedFileObjective::achieve | ( | Environment | $environment | ) |
Objectives can be achieved.
They might add resources to the environment when they have been achieved.
This method needs to be idempotent for a given environment. That means: if this is executed a second time, nothing new should happen. Or the other way round: if the environment already looks like desired, the objective should not take any further actions when this is called.
Implements ILIAS\Setup\Objective.
Definition at line 62 of file ImportFileUnzippedFileObjective.php.
References ILIAS\Setup\CLI\ImportFileUnzippedFileObjective\deleteRecursive(), ILIAS\Setup\CLI\ImportFileUnzippedFileObjective\extractZip(), and ILIAS\Setup\Environment\getConfigFor().
|
protected |
Definition at line 92 of file ImportFileUnzippedFileObjective.php.
Referenced by ILIAS\Setup\CLI\ImportFileUnzippedFileObjective\achieve().
|
protected |
Definition at line 117 of file ImportFileUnzippedFileObjective.php.
References Vendor\Package\$e.
Referenced by ILIAS\Setup\CLI\ImportFileUnzippedFileObjective\achieve().
ILIAS\Setup\CLI\ImportFileUnzippedFileObjective::getHash | ( | ) |
Get a hash for this objective.
The hash of two objectives must be the same, if they are the same objective, with the same config on the same environment, i.e. if the one is achieved the other is achieved as well because they are the same.
Implements ILIAS\Setup\Objective.
Definition at line 40 of file ImportFileUnzippedFileObjective.php.
ILIAS\Setup\CLI\ImportFileUnzippedFileObjective::getLabel | ( | ) |
Get a label that describes this objective.
Implements ILIAS\Setup\Objective.
Definition at line 45 of file ImportFileUnzippedFileObjective.php.
ILIAS\Setup\CLI\ImportFileUnzippedFileObjective::getPreconditions | ( | Environment | $environment | ) |
Objectives might depend on other objectives.
UnachievableException | if the objective is not achievable |
Implements ILIAS\Setup\Objective.
Definition at line 55 of file ImportFileUnzippedFileObjective.php.
ILIAS\Setup\CLI\ImportFileUnzippedFileObjective::isApplicable | ( | Environment | $environment | ) |
Get to know whether the objective is applicable.
Don't change the environment or cause changes on services in the environment. Just check if this objective needs to be achieved, either currently or at all. In case of doubt whether the objective is applicable or not return true.
Implements ILIAS\Setup\Objective.
Definition at line 87 of file ImportFileUnzippedFileObjective.php.
ILIAS\Setup\CLI\ImportFileUnzippedFileObjective::isNotable | ( | ) |
Get to know if this is an interesting objective for a human.
Implements ILIAS\Setup\Objective.
Definition at line 50 of file ImportFileUnzippedFileObjective.php.
|
protected |
Definition at line 33 of file ImportFileUnzippedFileObjective.php.
Referenced by ILIAS\Setup\CLI\ImportFileUnzippedFileObjective\__construct().