|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective:
Collaboration diagram for ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective:Public Member Functions | |
| __construct () | |
| 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 (Environment $environment) | |
| Objectives might depend on other objectives. More... | |
| isApplicable (Environment $environment) | |
| Get to know whether the objective is applicable. More... | |
| achieve (Environment $environment) | |
| Objectives can be achieved. More... | |
Public Member Functions inherited from ILIAS\Setup\Objective\AdminConfirmedObjective | |
| __construct (string $message) | |
| 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) | |
| @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... | |
Private Member Functions | |
| inform (string $text, bool $force=false) | |
| error (string $text) | |
| getCurlConnection (ilSetting $settings, string $url) | |
Private Attributes | |
| IOWrapper | $io = null |
| Container | $old_DIC = null |
| ilSetting | $old_settings = null |
Additional Inherited Members | |
Protected Attributes inherited from ILIAS\Setup\Objective\AdminConfirmedObjective | |
| string | $message |
Definition at line 39 of file BackgoundWorkerObjective.php.
| ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective::__construct | ( | ) |
Definition at line 45 of file BackgoundWorkerObjective.php.
References ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective::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 89 of file BackgoundWorkerObjective.php.
References ILIAS\$client_id, ILIAS\$ini, ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\$io, $settings, ilUtil\_getHttpPath(), CLIENT_ID, ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\error(), ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\getCurlConnection(), ILIAS\Setup\Environment\getResource(), ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\inform(), ILIAS\Setup\Environment\RESOURCE_ADMIN_INTERACTION, ILIAS\Setup\Environment\RESOURCE_CLIENT_ID, ILIAS\Setup\Environment\RESOURCE_ILIAS_INI, and ILIAS\Setup\Environment\RESOURCE_SETTINGS_FACTORY.
Here is the call graph for this function:
|
private |
Definition at line 179 of file BackgoundWorkerObjective.php.
References $text.
Referenced by ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\achieve().
Here is the caller graph for this function:
|
private |
Definition at line 188 of file BackgoundWorkerObjective.php.
References $settings.
Referenced by ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\achieve().
Here is the caller graph for this function:| ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective::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.
Reimplemented from ILIAS\Setup\Objective\AdminConfirmedObjective.
Definition at line 53 of file BackgoundWorkerObjective.php.
| ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective::getLabel | ( | ) |
Get a label that describes this objective.
Reimplemented from ILIAS\Setup\Objective\AdminConfirmedObjective.
Definition at line 58 of file BackgoundWorkerObjective.php.
| ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective::getPreconditions | ( | Environment | $environment | ) |
Objectives might depend on other objectives.
| UnachievableException | if the objective is not achievable |
Implements ILIAS\Setup\Objective.
Definition at line 68 of file BackgoundWorkerObjective.php.
|
private |
Definition at line 170 of file BackgoundWorkerObjective.php.
References $text.
Referenced by ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\achieve().
Here is the caller graph for this function:| ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective::isApplicable | ( | Environment | $environment | ) |
Get to know whether the objective is applicable.
Don't change the environment or cause changes on services in the environment. Just check if this objective needs to be achieved, either currently or at all. In case of doubt whether the objective is applicable or not return true.
Implements ILIAS\Setup\Objective.
Definition at line 78 of file BackgoundWorkerObjective.php.
References ILIAS\$ini, ILIAS\Setup\Environment\getResource(), ILIAS\Setup\Environment\RESOURCE_ILIAS_INI, and ILIAS\BackgroundTasks\Setup\SetupConfig\TYPE_ASYNCHRONOUS.
Here is the call graph for this function:| ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective::isNotable | ( | ) |
Get to know if this is an interesting objective for a human.
Reimplemented from ILIAS\Setup\Objective\AdminConfirmedObjective.
Definition at line 63 of file BackgoundWorkerObjective.php.
|
private |
Definition at line 41 of file BackgoundWorkerObjective.php.
Referenced by ILIAS\BackgroundTasks\Setup\BackgoundWorkerObjective\achieve().
|
private |
Definition at line 42 of file BackgoundWorkerObjective.php.
|
private |
Definition at line 43 of file BackgoundWorkerObjective.php.