ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLoggingSetupAgent Class Reference
+ Inheritance diagram for ilLoggingSetupAgent:
+ Collaboration diagram for ilLoggingSetupAgent:

Public Member Functions

 __construct (Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (?Config $config=null)
 
 getUpdateObjective (?Config $config=null)
 
 getBuildObjective ()
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 @inheritDoc 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 ( )

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

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 }
A transformation is a function from one datatype to another.

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

+ Here is the call graph for this function:

◆ getBuildObjective()

ilLoggingSetupAgent::getBuildObjective ( )

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:31

◆ getInstallObjective()

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

◆ getMigrations()

ilLoggingSetupAgent::getMigrations ( )

@inheritDoc

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 }
Class ilLoggingUpdateSteps8 contains update steps for release 8.

◆ getUpdateObjective()

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

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

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 }
A objective collection is a objective that is achieved once all subobjectives are achieved.
This class attempt to achieve a set of database update steps.

◆ hasConfig()

ilLoggingSetupAgent::hasConfig ( )

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: