ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLoggingSetupAgent Class Reference
+ Inheritance diagram for ilLoggingSetupAgent:
+ Collaboration diagram for ilLoggingSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilLoggingSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery.

20  {
21  $this->refinery = $refinery;
22  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilLoggingSetupAgent::getArrayToConfigTransformation ( )

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

References $data.

35  : Refinery\Transformation
36  {
37  return $this->refinery->custom()->transformation(function ($data) {
38  return new \ilLoggingSetupConfig(
39  $data["enable"] ?? false,
40  $data["path_to_logfile"] ?? null,
41  $data["errorlog_dir"] ?? null
42  );
43  });
44  }
$data
Definition: storeScorm.php:23

◆ getBuildArtifactObjective()

ilLoggingSetupAgent::getBuildArtifactObjective ( )

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

68  : Setup\Objective
69  {
70  return new Setup\Objective\NullObjective();
71  }

◆ getInstallObjective()

ilLoggingSetupAgent::getInstallObjective ( Setup\Config  $config = null)

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

References $config.

49  : Setup\Objective
50  {
52  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

◆ getMigrations()

ilLoggingSetupAgent::getMigrations ( )

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

84  : array
85  {
86  return [];
87  }

◆ getStatusObjective()

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

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

76  : Setup\Objective
77  {
78  return new ilLoggingMetricsCollectedObjective($storage);
79  }

◆ getUpdateObjective()

ilLoggingSetupAgent::getUpdateObjective ( Setup\Config  $config = null)

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

References $config.

57  : Setup\Objective
58  {
59  if ($config !== null) {
61  }
62  return new Setup\Objective\NullObjective();
63  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

◆ hasConfig()

ilLoggingSetupAgent::hasConfig ( )

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

27  : bool
28  {
29  return true;
30  }

Field Documentation

◆ $refinery

ilLoggingSetupAgent::$refinery
protected

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

Referenced by __construct().


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