ILIAS  release_8 Revision v8.24
class.ilPreviewSetupAgent.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): \ilPreviewSetupConfig => new \ilPreviewSetupConfig(
50 $data["path_to_ghostscript"] ?? null
51 ));
52 }
53
57 public function getInstallObjective(Setup\Config $config = null): Setup\Objective
58 {
61 }
62
66 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
67 {
68 if ($config !== null) {
71 }
73 }
74
78 public function getBuildArtifactObjective(): Setup\Objective
79 {
81 }
82
86 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
87 {
88 return new ilPreviewMetricsCollectedObjective($storage);
89 }
90
94 public function getMigrations(): array
95 {
96 return [];
97 }
98}
Builds data types.
Definition: Factory.php:21
A non-objective, nothing to do to achieve it...
getStatusObjective(Setup\Metrics\Storage $storage)
__construct(Refinery\Factory $refinery)
getInstallObjective(Setup\Config $config=null)
getUpdateObjective(Setup\Config $config=null)
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...