ILIAS  release_7 Revision v7.30-3-g800a261c036
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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilBackgroundTasksSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilBackgroundTasksSetupAgent::getArrayToConfigTransformation ( )

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

36 : Refinery\Transformation
37 {
38 return $this->refinery->custom()->transformation(function ($data) {
39 return new \ilBackgroundTasksSetupConfig(
41 $data["max_number_of_concurrent_tasks"] ?? 1
42 );
43 });
44 }
$data
Definition: storeScorm.php:23

References $data, and ilBackgroundTasksSetupConfig\TYPE_SYNCHRONOUS.

◆ getBuildArtifactObjective()

ilBackgroundTasksSetupAgent::getBuildArtifactObjective ( )

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

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

◆ getInstallObjective()

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

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

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

References $config.

◆ getMigrations()

ilBackgroundTasksSetupAgent::getMigrations ( )

@inheritDoc

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

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

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

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

57 : Setup\Objective
58 {
59 if ($config !== null) {
61 }
62 return new Setup\Objective\NullObjective();
63 }

References $config.

◆ hasConfig()

ilBackgroundTasksSetupAgent::hasConfig ( )

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

28 : bool
29 {
30 return true;
31 }

Field Documentation

◆ $refinery

ilBackgroundTasksSetupAgent::$refinery
protected

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

Referenced by __construct().


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