ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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, 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 (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 | |
$label | |
$condition | |
$message | |
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 16 of file ExternalConditionObjective.php.
ILIAS\Setup\Condition\ExternalConditionObjective::__construct | ( | string | $label, |
callable | $condition, | ||
string | $message = null |
||
) |
callable | $condition | needs to be function from Environment to bool. |
Definition at line 36 of file ExternalConditionObjective.php.
References 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 81 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 46 of file ExternalConditionObjective.php.
ILIAS\Setup\Condition\ExternalConditionObjective::getLabel | ( | ) |
Get a label that describes this objective.
Implements ILIAS\Setup\Objective.
Definition at line 57 of file ExternalConditionObjective.php.
References ILIAS\Setup\Condition\ExternalConditionObjective\$label.
ILIAS\Setup\Condition\ExternalConditionObjective::getPreconditions | ( | Setup\Environment | $environment | ) |
Definition at line 73 of file ExternalConditionObjective.php.
ILIAS\Setup\Condition\ExternalConditionObjective::isApplicable | ( | Setup\Environment | $environment | ) |
Definition at line 100 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 65 of file ExternalConditionObjective.php.
|
protected |
Definition at line 26 of file ExternalConditionObjective.php.
Referenced by ILIAS\Setup\Condition\ExternalConditionObjective\__construct().
|
protected |
Definition at line 21 of file ExternalConditionObjective.php.
Referenced by ILIAS\Setup\Condition\ExternalConditionObjective\__construct(), and ILIAS\Setup\Condition\ExternalConditionObjective\getLabel().
|
protected |
Definition at line 31 of file ExternalConditionObjective.php.
Referenced by ILIAS\Setup\Condition\ExternalConditionObjective\__construct().