ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (Refinery $refinery) | |
hasConfig () | |
Does this agent require a configuration? More... | |
getArrayToConfigTransformation () | |
Agents must be able to tell how to create a configuration from a nested array. More... | |
getInstallObjective (Config $config=null) | |
Get the goals the agent wants to achieve on setup. More... | |
getUpdateObjective (Config $config=null) | |
Get the goal the agent wants to achieve on update. More... | |
getBuildArtifactObjective () | |
Get the goal the agent wants to achieve to build artifacts. More... | |
getStatusObjective (Metrics\Storage $storage) | |
getMigrations () | |
Get a named map of migrations available for this Agent. More... | |
getNamedObjectives (?Config $config=null) | |
Gets all named objectives The keys of the returned array are the commands. More... | |
![]() | |
getStatusObjective (Metrics\Storage $storage) | |
Get the objective to be achieved when status is requested. More... | |
Protected Attributes | |
Refinery | $refinery |
Definition at line 31 of file class.ilTreeSetupAgent.php.
ilTreeSetupAgent::__construct | ( | Refinery | $refinery | ) |
Definition at line 35 of file class.ilTreeSetupAgent.php.
References $refinery, and ILIAS\Repository\refinery().
ilTreeSetupAgent::getArrayToConfigTransformation | ( | ) |
Agents must be able to tell how to create a configuration from a nested array.
LogicException | if Agent has no Config |
Implements ILIAS\Setup\Agent.
Definition at line 45 of file class.ilTreeSetupAgent.php.
References $data, and ILIAS\Repository\refinery().
ilTreeSetupAgent::getBuildArtifactObjective | ( | ) |
Get the goal the agent wants to achieve to build artifacts.
InvalidArgumentException | if Config does not match the Agent. |
Implements ILIAS\Setup\Agent.
Definition at line 62 of file class.ilTreeSetupAgent.php.
ilTreeSetupAgent::getInstallObjective | ( | Config | $config = null | ) |
Get the goals the agent wants to achieve on setup.
The provided configuration is to be used to set according configuration values in the installation.
InvalidArgumentException | if Config does not match the Agent.. |
Implements ILIAS\Setup\Agent.
Definition at line 52 of file class.ilTreeSetupAgent.php.
ilTreeSetupAgent::getMigrations | ( | ) |
Get a named map of migrations available for this Agent.
Should also return Migrations that have run completely.
Implements ILIAS\Setup\Agent.
Definition at line 77 of file class.ilTreeSetupAgent.php.
ilTreeSetupAgent::getNamedObjectives | ( | ?Config | $config = null | ) |
Gets all named objectives The keys of the returned array are the commands.
Only the AgentCollection should return an array where the cmd of the named objective is the array key.
Config | null | $config |
Implements ILIAS\Setup\Agent.
Definition at line 82 of file class.ilTreeSetupAgent.php.
References ilTreeImplementationSwitch\MATERIALIZED_PATH_TO_NESTED_SET, and ilTreeImplementationSwitch\NESTED_SET_TO_MATERIALIZED_PATH.
ilTreeSetupAgent::getStatusObjective | ( | Metrics\Storage | $storage | ) |
Definition at line 67 of file class.ilTreeSetupAgent.php.
ilTreeSetupAgent::getUpdateObjective | ( | Config | $config = null | ) |
Get the goal the agent wants to achieve on update.
The provided configuration is to be used to change according configuration values in the installation. If this is not possible for some reason, an according UnachievableException needs to be thrown in the according objective.
The configuration is not to be used to initialize the required environment for the objectives. This must be done via ClientIdReadObjective and depending objectives like ilIniFilesLoadedObjective.
If no configuration is provided the configuration of the component should stay as is.
InvalidArgumentException | if Config does not match the Agent.. |
Implements ILIAS\Setup\Agent.
Definition at line 57 of file class.ilTreeSetupAgent.php.
ilTreeSetupAgent::hasConfig | ( | ) |
Does this agent require a configuration?
Implements ILIAS\Setup\Agent.
Definition at line 40 of file class.ilTreeSetupAgent.php.
|
protected |
Definition at line 33 of file class.ilTreeSetupAgent.php.
Referenced by __construct().