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

Public Member Functions

 __construct (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...
 
 getInstallObjective (?Config $config=null)
 
 getUpdateObjective (?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 (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

Factory $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilLoggingSetupAgent::__construct ( Factory  $refinery)

Definition at line 35 of file class.ilLoggingSetupAgent.php.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilLoggingSetupAgent::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.ilLoggingSetupAgent.php.

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

52  {
53  return $this->refinery->custom()->transformation(function ($data) {
54  return new \ilLoggingSetupConfig(
55  $data["enable"] ?? false,
56  $data["path_to_logfile"] ?? null,
57  $data["errorlog_dir"] ?? null
58  );
59  });
60  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
A transformation is a function from one datatype to another.
+ Here is the call graph for this function:

◆ getBuildObjective()

ilLoggingSetupAgent::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 92 of file class.ilLoggingSetupAgent.php.

92  : Objective
93  {
94  return new Setup\Objective\NullObjective();
95  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getInstallObjective()

ilLoggingSetupAgent::getInstallObjective ( ?Config  $config = null)

Definition at line 65 of file class.ilLoggingSetupAgent.php.

65  : Objective
66  {
67  return new ilLoggingConfigStoredObjective($config);
68  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getMigrations()

ilLoggingSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 113 of file class.ilLoggingSetupAgent.php.

113  : array
114  {
115  return [];
116  }

◆ getStatusObjective()

ilLoggingSetupAgent::getStatusObjective ( Storage  $storage)

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

100  : Objective
101  {
102  return new Setup\ObjectiveCollection(
103  'Component Logging',
104  true,
107  );
108  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
Class ilLoggingUpdateSteps8 contains update steps for release 8.

◆ getUpdateObjective()

ilLoggingSetupAgent::getUpdateObjective ( ?Config  $config = null)

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

References null.

73  : Objective
74  {
75  $objective = new Setup\Objective\NullObjective();
76  if ($config !== null) {
77  $objective = new ilLoggingConfigStoredObjective($config);
78  }
80  'Update of Services/Logging',
81  false,
82  $objective,
85  )
86  );
87  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ilLoggingUpdateSteps8 contains update steps for release 8.

◆ hasConfig()

ilLoggingSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

43  : bool
44  {
45  return true;
46  }

Field Documentation

◆ $refinery

Factory ilLoggingSetupAgent::$refinery
protected

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

Referenced by __construct().


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