ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Class ilStorageContainersExistingObjective. More...
Public Member Functions | |
__construct (?array $storage_handler_ids=null) | |
getPreconditions (Environment $environment) | |
achieve (Environment $environment) | |
Objectives can be achieved. More... | |
isApplicable (Environment $environment) | |
@inheritDoc More... | |
![]() | |
__construct (string $path, int $permissions=self::DEFAULT_DIRECTORY_PERMISSIONS) | |
getHash () | |
Uses hashed Path. More... | |
getLabel () | |
Defaults to "Build $this->getArtifactPath()". More... | |
isNotable () | |
Defaults to 'true'. More... | |
getPreconditions (Setup\Environment $environment) | |
@inheritdocs More... | |
achieve (Setup\Environment $environment) | |
@inheritdocs More... | |
isApplicable (Setup\Environment $environment) | |
@inheritDoc More... | |
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 | |
buildStorageBasePath (Environment $environment) | |
Protected Attributes | |
string | $base_dir = StorageHandlerFactory::BASE_DIRECTORY |
array | $storage_handler_ids |
![]() | |
string | $path |
int | $permissions |
Additional Inherited Members | |
![]() | |
const | DEFAULT_DIRECTORY_PERMISSIONS = 0755 |
Class ilStorageContainersExistingObjective.
Definition at line 29 of file class.ilStorageContainersExistingObjective.php.
ilStorageContainersExistingObjective::__construct | ( | ?array | $storage_handler_ids = null | ) |
Definition at line 40 of file class.ilStorageContainersExistingObjective.php.
References $storage_handler_ids, and ILIAS\GlobalScreen\Provider\__construct().
ilStorageContainersExistingObjective::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.
LogicException if there are unfullfilled preconditions.
RuntimeException if there are missing resources.
Implements ILIAS\Setup\Objective.
Definition at line 77 of file class.ilStorageContainersExistingObjective.php.
References buildStorageBasePath().
|
protected |
Definition at line 46 of file class.ilStorageContainersExistingObjective.php.
References $base_dir, $client_id, $ini, and ILIAS\Setup\Environment\getResource().
Referenced by achieve(), and isApplicable().
ilStorageContainersExistingObjective::getPreconditions | ( | Environment | $environment | ) |
Implements ILIAS\Setup\Objective.
Definition at line 60 of file class.ilStorageContainersExistingObjective.php.
References ILIAS\Setup\Environment\getConfigFor(), and ILIAS\Setup\Environment\hasConfigFor().
ilStorageContainersExistingObjective::isApplicable | ( | Environment | $environment | ) |
@inheritDoc
Implements ILIAS\Setup\Objective.
Definition at line 94 of file class.ilStorageContainersExistingObjective.php.
References buildStorageBasePath().
|
protected |
Definition at line 31 of file class.ilStorageContainersExistingObjective.php.
Referenced by buildStorageBasePath().
|
protected |
Definition at line 36 of file class.ilStorageContainersExistingObjective.php.
Referenced by __construct().