ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (string $component_dir, protected int $base_location=self::DATADIR) | |
getHash () | |
Get a hash for this objective. More... | |
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... | |
Data Fields | |
const | DATADIR = 1 |
const | WEBDIR = 2 |
![]() | |
const | DEFAULT_DIRECTORY_PERMISSIONS = 0755 |
Protected Member Functions | |
buildPath (Environment $environment) | |
Protected Attributes | |
string | $component_dir |
![]() | |
string | $path |
int | $permissions |
Private Member Functions | |
checkEnvironment (Environment $environment) | |
Definition at line 24 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
ilFileSystemComponentDataDirectoryCreatedObjective::__construct | ( | string | $component_dir, |
protected int | $base_location = self::DATADIR |
||
) |
Definition at line 31 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
References $component_dir, and ILIAS\GlobalScreen\Provider\__construct().
ilFileSystemComponentDataDirectoryCreatedObjective::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 86 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
References buildPath(), and checkEnvironment().
|
protected |
Definition at line 46 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
References $client_id, $component_dir, $data_dir, $ini, and ILIAS\Setup\Environment\getResource().
Referenced by achieve(), and isApplicable().
|
private |
Definition at line 108 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
References ILIAS\Setup\Environment\getResource().
Referenced by achieve(), and isApplicable().
ilFileSystemComponentDataDirectoryCreatedObjective::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.ilFileSystemComponentDataDirectoryCreatedObjective.php.
ilFileSystemComponentDataDirectoryCreatedObjective::getPreconditions | ( | Environment | $environment | ) |
Implements ILIAS\Setup\Objective.
Definition at line 69 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
References ILIAS\Setup\Environment\getConfigFor(), and ILIAS\Setup\Environment\hasConfigFor().
ilFileSystemComponentDataDirectoryCreatedObjective::isApplicable | ( | Environment | $environment | ) |
@inheritDoc
Implements ILIAS\Setup\Objective.
Definition at line 99 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
References buildPath(), and checkEnvironment().
|
protected |
Definition at line 29 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
Referenced by __construct(), and buildPath().
const ilFileSystemComponentDataDirectoryCreatedObjective::DATADIR = 1 |
Definition at line 26 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
Referenced by ilBibliographicSetupAgent\getInstallObjective(), ilForumSetupAgent\getInstallObjective(), and ilMailSetupAgent\getInstallObjective().
const ilFileSystemComponentDataDirectoryCreatedObjective::WEBDIR = 2 |
Definition at line 27 of file class.ilFileSystemComponentDataDirectoryCreatedObjective.php.
Referenced by ilLearningModuleSetupAgent\getInstallObjective(), and ilLearningSequenceSetupAgent\getInstallObjective().