ILIAS
trunk Revision v11.0_alpha-1753-gb21ca8c4367
|
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) | |
![]() | |
__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) | |
achieve (Setup\Environment $environment) | |
isApplicable (Setup\Environment $environment) | |
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.
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(), and null.
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 | ) |
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 ilForumSetupAgent\getInstallObjective(), ilMailSetupAgent\getInstallObjective(), and ilBibliographicSetupAgent\getInstallObjective().
const ilFileSystemComponentDataDirectoryCreatedObjective::WEBDIR = 2 |