ILIAS
release_8 Revision v8.19
|
A condition that can't be met by ILIAS itself needs to be met by some external means. More...
Public Member Functions | |
__construct (string $label, \Closure $condition, string $message=null, bool $block_setup=false) | |
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 (Setup\Environment $environment) | |
achieve (Setup\Environment $environment) | |
isApplicable (Setup\Environment $environment) | |
![]() | |
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 Attributes | |
string | $label |
Closure | $condition |
string | $message |
bool | $block_setup |
A condition that can't be met by ILIAS itself needs to be met by some external means.
ATTENTION: Two ExternalConditionObjectives are considered to be identical if the label is identical. I.e., getHash does not use the actual condition or the message.
Definition at line 32 of file ExternalConditionObjective.php.
ILIAS\Setup\Condition\ExternalConditionObjective::__construct | ( | string | $label, |
\Closure | $condition, | ||
string | $message = null , |
||
bool | $block_setup = false |
||
) |
callable | $condition | needs to be function from Environment to bool. |
Definition at line 42 of file ExternalConditionObjective.php.
References ILIAS\Setup\Condition\ExternalConditionObjective\$block_setup, ILIAS\Setup\Condition\ExternalConditionObjective\$condition, ILIAS\Setup\Condition\ExternalConditionObjective\$label, and ILIAS\Setup\Condition\ExternalConditionObjective\$message.
ILIAS\Setup\Condition\ExternalConditionObjective::achieve | ( | Setup\Environment | $environment | ) |
Definition at line 92 of file ExternalConditionObjective.php.
References ILIAS\Setup\Environment\getResource(), and ILIAS\Setup\Environment\RESOURCE_ADMIN_INTERACTION.
ILIAS\Setup\Condition\ExternalConditionObjective::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 57 of file ExternalConditionObjective.php.
ILIAS\Setup\Condition\ExternalConditionObjective::getLabel | ( | ) |
Get a label that describes this objective.
Implements ILIAS\Setup\Objective.
Definition at line 68 of file ExternalConditionObjective.php.
References ILIAS\Setup\Condition\ExternalConditionObjective\$label.
ILIAS\Setup\Condition\ExternalConditionObjective::getPreconditions | ( | Setup\Environment | $environment | ) |
Definition at line 84 of file ExternalConditionObjective.php.
ILIAS\Setup\Condition\ExternalConditionObjective::isApplicable | ( | Setup\Environment | $environment | ) |
Definition at line 112 of file ExternalConditionObjective.php.
ILIAS\Setup\Condition\ExternalConditionObjective::isNotable | ( | ) |
Get to know if this is an interesting objective for a human.
Implements ILIAS\Setup\Objective.
Definition at line 76 of file ExternalConditionObjective.php.
|
protected |
Definition at line 37 of file ExternalConditionObjective.php.
Referenced by ILIAS\Setup\Condition\PHPVersionCondition\__construct(), and ILIAS\Setup\Condition\ExternalConditionObjective\__construct().
|
protected |
Definition at line 35 of file ExternalConditionObjective.php.
Referenced by ILIAS\Setup\Condition\ExternalConditionObjective\__construct().
|
protected |
Definition at line 34 of file ExternalConditionObjective.php.
Referenced by ILIAS\Setup\Condition\ExternalConditionObjective\__construct(), and ILIAS\Setup\Condition\ExternalConditionObjective\getLabel().
|
protected |
Definition at line 36 of file ExternalConditionObjective.php.
Referenced by ILIAS\Setup\Condition\ExternalConditionObjective\__construct().