ILIAS  release_8 Revision v8.24
class.ilMathJaxSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20use ILIAS\Setup;
22
24{
25 use Setup\Agent\HasNoNamedObjective;
26
27 protected Refinery\Factory $refinery;
28
29 public function __construct(Refinery\Factory $refinery)
30 {
31 $this->refinery = $refinery;
32 }
33
37 public function hasConfig(): bool
38 {
39 return true;
40 }
41
46 {
47 return $this->refinery->custom()->transformation(function ($data) {
48 return new ilMathJaxSetupConfig((array) $data);
49 });
50 }
51
55 public function getInstallObjective(Setup\Config $config = null): Setup\Objective
56 {
59 }
60
64 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
65 {
67 if ($config !== null) {
68 return new Setup\ObjectiveCollection(
69 'MathJax configuration and database update',
70 false,
73 );
74 } else {
76 }
77 }
78
82 public function getBuildArtifactObjective(): Setup\Objective
83 {
85 }
86
90 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
91 {
92 return new ilMathJaxMetricsCollectedObjective($storage);
93 }
94
98 public function getMigrations(): array
99 {
100 return [];
101 }
102}
Builds data types.
Definition: Factory.php:21
A non-objective, nothing to do to achieve it...
__construct(Refinery\Factory $refinery)
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...