ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilUtilitiesSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Setup
;
22
use
ILIAS\Refinery
;
23
24
class
ilUtilitiesSetupAgent
implements
Setup\Agent
25
{
26
use Setup\Agent\HasNoNamedObjective;
27
28
protected
Refinery\Factory
$refinery
;
29
30
public
function
__construct
(
Refinery
\
Factory
$refinery
)
31
{
32
$this->
refinery
=
$refinery
;
33
}
34
38
public
function
hasConfig
(): bool
39
{
40
return
true
;
41
}
42
46
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
47
{
48
return
$this->
refinery
->custom()->transformation(
function
(
$data
) {
49
return
new
ilUtilitiesSetupConfig
(
50
$data
[
"path_to_convert"
] ??
"/usr/bin/convert"
,
51
$data
[
"path_to_zip"
] ??
"/usr/bin/zip"
,
52
$data
[
"path_to_unzip"
] ??
"/usr/bin/unzip"
53
);
54
});
55
}
56
60
public
function
getInstallObjective(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
61
{
63
return
new
ilUtilitiesConfigStoredObjective
($config);
64
}
65
69
public
function
getUpdateObjective(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
70
{
71
if
($config !==
null
) {
73
return
new
ilUtilitiesConfigStoredObjective
($config);
74
}
75
return
new
Setup\Objective\NullObjective();
76
}
77
81
public
function
getBuildObjective
():
Setup
\
Objective
82
{
83
return
new
Setup\Objective\NullObjective
();
84
}
85
89
public
function
getStatusObjective
(
Setup
\Metrics\
Storage
$storage):
Setup
\
Objective
90
{
91
return
new
ilUtilitiesMetricsCollectedObjective
($storage);
92
}
93
97
public
function
getMigrations
(): array
98
{
99
return
[];
100
}
101
}
ILIAS\Data\Color\Factory
Builds a Color from either hex- or rgb values.
Definition:
Factory.php:31
ILIAS\Refinery
Definition:
Refinery.php:24
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:29
ILIAS\Setup
Definition:
Setup.php:26
ilUtilitiesConfigStoredObjective
Stores configuration for the Utilities service (paths to various tools) in the according ini-fields.
Definition:
class.ilUtilitiesConfigStoredObjective.php:28
ilUtilitiesMetricsCollectedObjective
Definition:
class.ilUtilitiesMetricsCollectedObjective.php:24
ilUtilitiesSetupAgent
Definition:
class.ilUtilitiesSetupAgent.php:25
ilUtilitiesSetupAgent\getMigrations
getMigrations()
@inheritDoc
Definition:
class.ilUtilitiesSetupAgent.php:97
ilUtilitiesSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilUtilitiesSetupAgent.php:46
ilUtilitiesSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilUtilitiesSetupAgent.php:89
ilUtilitiesSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilUtilitiesSetupAgent.php:81
ilUtilitiesSetupAgent\$refinery
Refinery Factory $refinery
Definition:
class.ilUtilitiesSetupAgent.php:28
ilUtilitiesSetupAgent\hasConfig
hasConfig()
Definition:
class.ilUtilitiesSetupAgent.php:38
ilUtilitiesSetupAgent\__construct
__construct(Refinery\Factory $refinery)
Definition:
class.ilUtilitiesSetupAgent.php:30
ilUtilitiesSetupConfig
Definition:
class.ilUtilitiesSetupConfig.php:24
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ILIAS\Setup\Agent
A agent is some component that performs part of the setup process.
Definition:
Agent.php:30
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:27
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup.
Definition:
Objective.php:31
ILIAS\UI\Storage
Storage is simple key/value store without further schema definition.
Definition:
Storage.php:30
$data
$data
Definition:
ltiregistration.php:29
ILIAS\Refinery
Definition:
ByTrying.php:21
ILIAS\Repository\refinery
refinery()
Definition:
trait.GlobalDICDomainServices.php:76
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilMysqlMyIsamToInnoDbMigration.php:19
components
ILIAS
Utilities
classes
Setup
class.ilUtilitiesSetupAgent.php
Generated on Sat Oct 18 2025 23:04:59 for ILIAS by
1.9.4 (using
Doxyfile
)