ILIAS  release_8 Revision v8.24
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 ()
 @inheritDoc More...
 

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.

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.

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

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

◆ getInstallObjective()

ilLoggingSetupAgent::getInstallObjective ( Config  $config = null)

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

66 : Objective
67 {
69 }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85

References $config.

◆ getMigrations()

ilLoggingSetupAgent::getMigrations ( )

@inheritDoc

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

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

◆ getStatusObjective()

ilLoggingSetupAgent::getStatusObjective ( Storage  $storage)

◆ getUpdateObjective()

ilLoggingSetupAgent::getUpdateObjective ( Config  $config = null)

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

74 : Objective
75 {
76 $objective = new Setup\Objective\NullObjective();
77 if ($config !== null) {
79 }
81 'Update of Services/Logging',
82 false,
83 $objective,
86 )
87 );
88 }
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $config.

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