ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilLanguageSetupAgent Class Reference
+ Inheritance diagram for ilLanguageSetupAgent:
+ Collaboration diagram for ilLanguageSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery, \ilSetupLanguage $il_setup_language)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts.
Exceptions
InvalidArgumentExceptionif Config does not match the Agent.
More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 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...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Protected Attributes

Refinery Factory $refinery
 
ilSetupLanguage $il_setup_language
 

Detailed Description

Definition at line 25 of file class.ilLanguageSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilLanguageSetupAgent::__construct ( Refinery\Factory  $refinery,
\ilSetupLanguage  $il_setup_language 
)

Definition at line 32 of file class.ilLanguageSetupAgent.php.

References $il_setup_language, $refinery, and ILIAS\Repository\refinery().

35  {
36  $this->refinery = $refinery;
37  $this->il_setup_language = $il_setup_language;
38  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilLanguageSetupAgent::getArrayToConfigTransformation ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

Definition at line 51 of file class.ilLanguageSetupAgent.php.

51  : Refinery\Transformation
52  {
53  throw new LogicException(self::class . " has no Config.");
54  }

◆ getBuildObjective()

ilLanguageSetupAgent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

Definition at line 84 of file class.ilLanguageSetupAgent.php.

84  : Setup\Objective
85  {
86  return new Setup\Objective\NullObjective();
87  }

◆ getInstallObjective()

ilLanguageSetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 59 of file class.ilLanguageSetupAgent.php.

59  : Setup\Objective
60  {
61  return new Setup\ObjectiveCollection(
62  "Complete objectives from components/ILIAS/Language",
63  false,
64  new ilLanguagesInstalledAndUpdatedObjective($this->il_setup_language),
66  );
67  }

◆ getMigrations()

ilLanguageSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 100 of file class.ilLanguageSetupAgent.php.

100  : array
101  {
102  return [];
103  }

◆ getStatusObjective()

ilLanguageSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 92 of file class.ilLanguageSetupAgent.php.

92  : Setup\Objective
93  {
94  return new ilLanguageMetricsCollectedObjective($storage, $this->il_setup_language);
95  }

◆ getUpdateObjective()

ilLanguageSetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 72 of file class.ilLanguageSetupAgent.php.

72  : Setup\Objective
73  {
74  return new Setup\ObjectiveCollection(
75  "Complete objectives from components/ILIAS/Language",
76  false,
77  new ilLanguagesInstalledAndUpdatedObjective($this->il_setup_language),
78  );
79  }

◆ hasConfig()

ilLanguageSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 43 of file class.ilLanguageSetupAgent.php.

43  : bool
44  {
45  return false;
46  }

Field Documentation

◆ $il_setup_language

ilSetupLanguage ilLanguageSetupAgent::$il_setup_language
protected

Definition at line 30 of file class.ilLanguageSetupAgent.php.

Referenced by __construct().

◆ $refinery

Refinery Factory ilLanguageSetupAgent::$refinery
protected

Definition at line 29 of file class.ilLanguageSetupAgent.php.

Referenced by __construct().


The documentation for this class was generated from the following file: