ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 26 of file class.ilLanguageSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

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

36  {
37  $this->refinery = $refinery;
38  $this->il_setup_language = $il_setup_language;
39  }
+ 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 52 of file class.ilLanguageSetupAgent.php.

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

◆ 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 85 of file class.ilLanguageSetupAgent.php.

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

◆ getInstallObjective()

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

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

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

◆ getMigrations()

ilLanguageSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

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

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

◆ getStatusObjective()

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

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

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

◆ getUpdateObjective()

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

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

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

◆ hasConfig()

ilLanguageSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

44  : bool
45  {
46  return false;
47  }

Field Documentation

◆ $il_setup_language

ilSetupLanguage ilLanguageSetupAgent::$il_setup_language
protected

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

Referenced by __construct().

◆ $refinery

Refinery Factory ilLanguageSetupAgent::$refinery
protected

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

Referenced by __construct().


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