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

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.

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 }

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

+ 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)

@noinspection PhpParamsInspection

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

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

References $config.

◆ getMigrations()

ilBackgroundTasksSetupAgent::getMigrations ( )

@inheritDoc

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)

@noinspection PhpParamsInspection

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

67 : Setup\Objective
68 {
69 if ($config !== null) {
72 }
73 return new Setup\Objective\NullObjective();
74 }

References $config.

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