ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 

Protected Attributes

Factory $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilLoggingSetupAgent::__construct ( Factory  $refinery)

Definition at line 36 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 52 of file class.ilLoggingSetupAgent.php.

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

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

◆ getBuildArtifactObjective()

ilLoggingSetupAgent::getBuildArtifactObjective ( )

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

93  : Objective
94  {
95  return new Setup\Objective\NullObjective();
96  }
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 66 of file class.ilLoggingSetupAgent.php.

References $config.

66  : Objective
67  {
68  return new ilLoggingConfigStoredObjective($config);
69  }
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 ( )

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

109  : array
110  {
111  return [];
112  }

◆ getStatusObjective()

ilLoggingSetupAgent::getStatusObjective ( Storage  $storage)

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

101  : Objective
102  {
103  return new ilLoggingMetricsCollectedObjective($storage);
104  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getUpdateObjective()

ilLoggingSetupAgent::getUpdateObjective ( Config  $config = null)

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

References $config.

74  : Objective
75  {
76  $objective = new Setup\Objective\NullObjective();
77  if ($config !== null) {
78  $objective = new ilLoggingConfigStoredObjective($config);
79  }
81  'Update of Services/Logging',
82  false,
83  $objective,
86  )
87  );
88  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ hasConfig()

ilLoggingSetupAgent::hasConfig ( )

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

44  : bool
45  {
46  return true;
47  }

Field Documentation

◆ $refinery

Factory ilLoggingSetupAgent::$refinery
protected

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

Referenced by __construct().


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