ILIAS  trunk Revision v11.0_alpha-1862-g4e205cb56d4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMathJaxSetupAgent Class Reference
+ Inheritance diagram for ilMathJaxSetupAgent:
+ Collaboration diagram for ilMathJaxSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $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.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 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
 

Detailed Description

Definition at line 23 of file class.ilMathJaxSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilMathJaxSetupAgent::__construct ( Refinery\Factory  $refinery)

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

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

30  {
31  $this->refinery = $refinery;
32  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilMathJaxSetupAgent::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 45 of file class.ilMathJaxSetupAgent.php.

References $data, ILIAS\Setup\Agent\getInstallObjective(), ILIAS\Setup\Agent\getUpdateObjective(), null, and ILIAS\Repository\refinery().

45  : Refinery\Transformation
46  {
47  return $this->refinery->custom()->transformation(function ($data) {
48  return new ilMathJaxSetupConfig((array) $data);
49  });
50  }
+ Here is the call graph for this function:

◆ getBuildObjective()

ilMathJaxSetupAgent::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 82 of file class.ilMathJaxSetupAgent.php.

82  : Setup\Objective
83  {
84  return new Setup\Objective\NullObjective();
85  }

◆ getMigrations()

ilMathJaxSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 98 of file class.ilMathJaxSetupAgent.php.

98  : array
99  {
100  return [];
101  }

◆ getStatusObjective()

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

Definition at line 90 of file class.ilMathJaxSetupAgent.php.

90  : Setup\Objective
91  {
92  return new ilMathJaxMetricsCollectedObjective($storage);
93  }

◆ hasConfig()

ilMathJaxSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 37 of file class.ilMathJaxSetupAgent.php.

37  : bool
38  {
39  return true;
40  }

Field Documentation

◆ $refinery

Refinery Factory ilMathJaxSetupAgent::$refinery
protected

Definition at line 27 of file class.ilMathJaxSetupAgent.php.

Referenced by __construct().


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