ILIAS  release_8 Revision v8.24
class.ilBackgroundTasksSetupAgent.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Setup;
21use ILIAS\Data;
22use ILIAS\UI;
23
25{
26 use Setup\Agent\HasNoNamedObjective;
27
28 protected Refinery\Factory $refinery;
29
30 public function __construct(
31 Refinery\Factory $refinery
32 ) {
33 $this->refinery = $refinery;
34 }
35
39 public function hasConfig(): bool
40 {
41 return true;
42 }
43
48 {
49 return $this->refinery->custom()->transformation(fn ($data): \ilBackgroundTasksSetupConfig => new \ilBackgroundTasksSetupConfig(
51 $data["max_number_of_concurrent_tasks"] ?? 1
52 ));
53 }
54
58 public function getInstallObjective(Setup\Config $config = null): Setup\Objective
59 {
62 }
63
67 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
68 {
69 if ($config !== null) {
72 }
74 }
75
79 public function getBuildArtifactObjective(): Setup\Objective
80 {
82 }
83
87 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
88 {
90 }
91
95 public function getMigrations(): array
96 {
97 return [];
98 }
99}
Builds data types.
Definition: Factory.php:21
A non-objective, nothing to do to achieve it...
getInstallObjective(Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ByTrying.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...