ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Public Member Functions | |||
__construct (protected string $source_folder, protected string $target_folder, protected bool $data_dir=false, protected bool $bare=false) | |||
Copies a directory from ILIAS root or from the outer ILIAS data directory depending on the flag $data_dir. More... | |||
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. 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.
| |||
![]() | |||
achieve (Environment $environment) | |||
Objectives can be achieved. More... | |||
isApplicable (Environment $environment) | |||
Get to know whether the objective is applicable. More... | |||
Protected Member Functions | |
deleteDirRecursive (string $path) | |
getSourceName (string $source) | |
Definition at line 24 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.
ilFileSystemDirectoryCopiedRecursivelyObjective::__construct | ( | protected string | $source_folder, |
protected string | $target_folder, | ||
protected bool | $data_dir = false , |
||
protected bool | $bare = false |
||
) |
Copies a directory from ILIAS root or from the outer ILIAS data directory depending on the flag $data_dir.
With $source_folder you can select the directory to copy from selected root directory. Empty string for $source_folder means copy the whole root directory. $target_folder should always be the path wehre to copy into. Set the bare flag true to copy from $source_folder to $target_folder on whole filesystem.
Definition at line 34 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.
|
protected |
Definition at line 141 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.
Referenced by getPreconditions().
ilFileSystemDirectoryCopiedRecursivelyObjective::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 41 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.
References getSourceName().
ilFileSystemDirectoryCopiedRecursivelyObjective::getLabel | ( | ) |
Get a label that describes this objective.
Implements ILIAS\Setup\Objective.
Definition at line 49 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.
References getSourceName().
ilFileSystemDirectoryCopiedRecursivelyObjective::getPreconditions | ( | Environment | $environment | ) |
Objectives might depend on other objectives.
UnachievableException | if the objective is not achievable |
Implements ILIAS\Setup\Objective.
Definition at line 66 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.
References $ini, ILIAS\Setup\Objective\achieve(), deleteDirRecursive(), ILIAS\Setup\Environment\getResource(), and ILIAS\Setup\Objective\isApplicable().
|
protected |
Definition at line 157 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.
Referenced by getHash(), and getLabel().
ilFileSystemDirectoryCopiedRecursivelyObjective::isNotable | ( | ) |
Get to know if this is an interesting objective for a human.
Implements ILIAS\Setup\Objective.
Definition at line 58 of file class.ilFileSystemDirectoryCopiedRecursivelyObjective.php.