ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilBackgroundTasksSetupAgent Class Reference
+ Inheritance diagram for ilBackgroundTasksSetupAgent:
+ Collaboration diagram for ilBackgroundTasksSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getConfigInput (Setup\Config $config=null)
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 

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 17 of file class.ilBackgroundTasksSetupAgent.php.

References $refinery.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilBackgroundTasksSetupAgent::getArrayToConfigTransformation ( )

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

42 : Refinery\Transformation
43 {
44 return $this->refinery->custom()->transformation(function ($data) {
45 return new \ilBackgroundTasksSetupConfig(
47 $data["max_number_of_concurrent_tasks"] ?? 1
48 );
49 });
50 }
$data
Definition: storeScorm.php:23

References $data, and ilBackgroundTasksSetupConfig\TYPE_SYNCHRONOUS.

◆ getBuildArtifactObjective()

ilBackgroundTasksSetupAgent::getBuildArtifactObjective ( )

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

75 : Setup\Objective
76 {
77 return new Setup\NullObjective();
78 }

◆ getConfigInput()

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

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

34 : UI\Component\Input\Field\Input
35 {
36 throw new \LogicException("Not yet implemented.");
37 }

◆ getInstallObjective()

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

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

55 : Setup\Objective
56 {
57 return new Setup\ObjectiveCollection(
58 "Complete objectives from Services/BackgroundTasks",
59 false,
61 );
62 }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

References $config.

◆ getUpdateObjective()

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

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

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

◆ hasConfig()

ilBackgroundTasksSetupAgent::hasConfig ( )

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

26 : bool
27 {
28 return true;
29 }

Field Documentation

◆ $refinery

ilBackgroundTasksSetupAgent::$refinery
protected

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

Referenced by __construct().


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