ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBackgroundTasksSetupAgent Class Reference
+ Inheritance diagram for ilBackgroundTasksSetupAgent:
+ Collaboration diagram for ilBackgroundTasksSetupAgent:

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 Factory $refinery
 

Detailed Description

Definition at line 24 of file class.ilBackgroundTasksSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilBackgroundTasksSetupAgent::__construct ( Refinery\Factory  $refinery)

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

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilBackgroundTasksSetupAgent::getArrayToConfigTransformation ( )

Definition at line 47 of file class.ilBackgroundTasksSetupAgent.php.

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

47  : Refinery\Transformation
48  {
49  return $this->refinery->custom()->transformation(fn ($data): \ilBackgroundTasksSetupConfig => new \ilBackgroundTasksSetupConfig(
51  $data["max_number_of_concurrent_tasks"] ?? 1
52  ));
53  }
+ Here is the call graph for this function:

◆ getBuildArtifactObjective()

ilBackgroundTasksSetupAgent::getBuildArtifactObjective ( )

Definition at line 79 of file class.ilBackgroundTasksSetupAgent.php.

79  : Setup\Objective
80  {
81  return new Setup\Objective\NullObjective();
82  }

◆ getInstallObjective()

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

PhpParamsInspection

Definition at line 58 of file class.ilBackgroundTasksSetupAgent.php.

References $config.

58  : Setup\Objective
59  {
62  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85

◆ getMigrations()

ilBackgroundTasksSetupAgent::getMigrations ( )

Definition at line 95 of file class.ilBackgroundTasksSetupAgent.php.

95  : array
96  {
97  return [];
98  }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

PhpParamsInspection

Definition at line 67 of file class.ilBackgroundTasksSetupAgent.php.

References $config.

67  : Setup\Objective
68  {
69  if ($config !== null) {
72  }
73  return new Setup\Objective\NullObjective();
74  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85

◆ hasConfig()

ilBackgroundTasksSetupAgent::hasConfig ( )

Definition at line 39 of file class.ilBackgroundTasksSetupAgent.php.

39  : bool
40  {
41  return true;
42  }

Field Documentation

◆ $refinery

Refinery Factory ilBackgroundTasksSetupAgent::$refinery
protected

Definition at line 28 of file class.ilBackgroundTasksSetupAgent.php.

Referenced by __construct().


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