ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
A callable objective wraps a callable into an objective. More...
Public Member Functions | |
__construct (callable $callable, string $label, bool $is_notable, Setup\Objective ... $preconditions) | |
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 (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 | |
$callable | |
string | $label |
bool | $is_notable |
array | $preconditions |
A callable objective wraps a callable into an objective.
The callable receives the environment as parameter. It may return an updated version of the environment, other results will be discarded.
Definition at line 31 of file CallableObjective.php.
ILIAS\Setup\Objective\CallableObjective::__construct | ( | callable | $callable, |
string | $label, | ||
bool | $is_notable, | ||
Setup\Objective ... | $preconditions | ||
) |
Definition at line 47 of file CallableObjective.php.
References ILIAS\Setup\Objective\CallableObjective\$callable, ILIAS\Setup\Objective\CallableObjective\$is_notable, ILIAS\Setup\Objective\CallableObjective\$label, and ILIAS\Setup\Objective\CallableObjective\$preconditions.
ILIAS\Setup\Objective\CallableObjective::achieve | ( | Setup\Environment | $environment | ) |
ILIAS\Setup\Objective\CallableObjective::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 55 of file CallableObjective.php.
ILIAS\Setup\Objective\CallableObjective::getLabel | ( | ) |
Get a label that describes this objective.
Implements ILIAS\Setup\Objective.
Definition at line 63 of file CallableObjective.php.
References ILIAS\Setup\Objective\CallableObjective\$label.
ILIAS\Setup\Objective\CallableObjective::getPreconditions | ( | Setup\Environment | $environment | ) |
Definition at line 73 of file CallableObjective.php.
References ILIAS\Setup\Objective\CallableObjective\$preconditions.
ILIAS\Setup\Objective\CallableObjective::isApplicable | ( | Setup\Environment | $environment | ) |
Definition at line 87 of file CallableObjective.php.
ILIAS\Setup\Objective\CallableObjective::isNotable | ( | ) |
Get to know if this is an interesting objective for a human.
Implements ILIAS\Setup\Objective.
Definition at line 68 of file CallableObjective.php.
References ILIAS\Setup\Objective\CallableObjective\$is_notable.
|
protected |
Definition at line 36 of file CallableObjective.php.
Referenced by ILIAS\Setup\Objective\CallableObjective\__construct().
|
protected |
Definition at line 40 of file CallableObjective.php.
Referenced by ILIAS\Setup\Objective\CallableObjective\__construct(), and ILIAS\Setup\Objective\CallableObjective\isNotable().
|
protected |
Definition at line 38 of file CallableObjective.php.
Referenced by ILIAS\Setup\Objective\CallableObjective\__construct(), and ILIAS\Setup\Objective\CallableObjective\getLabel().
|
protected |
Definition at line 45 of file CallableObjective.php.
Referenced by ILIAS\Setup\Objective\CallableObjective\__construct(), and ILIAS\Setup\Objective\CallableObjective\getPreconditions().