|
| __construct ($which) |
|
| __construct (string $label, callable $condition, string $message=null) |
|
| 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.- Exceptions
-
- Returns
- Objective[]
More...
|
|
| 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.- Exceptions
-
More...
|
|
◆ __construct()
ILIAS\Setup\CanCreateFilesInDirectoryCondition::__construct |
( |
|
$which | ) |
|
Definition at line 11 of file CanCreateFilesInDirectoryCondition.php.
References $success, and ILIAS\GlobalScreen\Provider\__construct().
14 "Can create files in '$which'",
15 function (Environment $env) use ($which) :
bool {
16 $probe = $which .
"/" . self::PROBE_NAME;
17 if (!@file_put_contents($probe, self::PROBE_NAME)) {
20 $success = @file_get_contents($probe) == self::PROBE_NAME;
24 "ILIAS needs to be able to create files in '$which'."
__construct(Container $dic, ilPlugin $plugin)
◆ PROBE_NAME
const ILIAS\Setup\CanCreateFilesInDirectoryCondition::PROBE_NAME = "probe_for_file_creation" |
The documentation for this class was generated from the following file: