ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
class.ilUserSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
use
ILIAS\Setup
;
20
use
ILIAS\Refinery
;
21
use
ILIAS\Setup\ObjectiveCollection
;
22
26
class
ilUserSetupAgent
implements
Setup\Agent
27
{
28
use
Setup\Agent\HasNoNamedObjective
;
29
30
public
function
hasConfig
(): bool
31
{
32
return
false
;
33
}
34
35
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
36
{
37
throw
new \LogicException(
"Agent has no config."
);
38
}
39
40
public
function
getInstallObjective
(Setup\
Config
$config = null): Setup\
Objective
41
{
42
$dir_objective =
new
ilFileSystemComponentDataDirectoryCreatedObjective
(
43
'usr_images'
,
44
ilFileSystemComponentDataDirectoryCreatedObjective::WEBDIR
45
);
46
47
return
new
Setup\ObjectiveCollection(
48
"Complete objectives from Services/User"
,
49
false
,
50
$dir_objective
51
);
52
}
53
54
public
function
getUpdateObjective
(Setup\
Config
$config = null): Setup\
Objective
55
{
56
return
new
ObjectiveCollection
(
57
'Database is updated for Services/User'
,
58
false
,
59
new
ilDatabaseUpdateStepsExecutedObjective
(
60
new
ilUser8DBUpdateSteps
()
61
),
62
new
ilDatabaseUpdateStepsExecutedObjective
(
63
new
ilUserDB90
()
64
)
65
);
66
}
67
68
public
function
getBuildArtifactObjective
(): Setup\
Objective
69
{
70
return
new
Setup\Objective\NullObjective();
71
}
72
73
public
function
getStatusObjective
(Setup\Metrics\Storage $storage): Setup\
Objective
74
{
75
return
new
ObjectiveCollection
(
76
'Services/User'
,
77
true
,
78
new
ilDatabaseUpdateStepsMetricsCollectedObjective
(
79
$storage,
80
new
ilUser8DBUpdateSteps
()
81
),
82
new
ilDatabaseUpdateStepsMetricsCollectedObjective
(
83
$storage,
84
new
ilUserDB90
()
85
)
86
);
87
}
88
89
public
function
getMigrations
(): array
90
{
91
return
[
92
new
ilUserProfilePictureMigration
(),
93
new
ilUpdateNewAccountMailTemplatesForMustache
()
94
];
95
}
96
}
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved...
Definition:
ObjectiveCollection.php:26
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup...
Definition:
Objective.php:30
ilUser8DBUpdateSteps
Definition:
class.ilUser8DBUpdateSteps.php:21
ILIAS\Refinery
Definition:
ByTrying.php:21
ilUserSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilUserSetupAgent.php:73
ilDatabaseUpdateStepsExecutedObjective
ilDatabaseUpdateStepsMetricsCollectedObjective
ilUserSetupAgent
Definition:
class.ilUserSetupAgent.php:26
ilUserSetupAgent\hasConfig
hasConfig()
Definition:
class.ilUserSetupAgent.php:30
ilFileSystemComponentDataDirectoryCreatedObjective\WEBDIR
const WEBDIR
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:24
ilUserSetupAgent\getMigrations
getMigrations()
Definition:
class.ilUserSetupAgent.php:89
Factory
ObjectiveCollection
ilFileSystemComponentDataDirectoryCreatedObjective
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:21
ilUserProfilePictureMigration
Definition:
class.ilUserProfilePictureMigration.php:28
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
ilUserSetupAgent\getInstallObjective
getInstallObjective(Setup\Config $config=null)
Definition:
class.ilUserSetupAgent.php:40
ilUpdateNewAccountMailTemplatesForMustache
Definition:
class.ilUpdateNewAccountMailTemplatesForMustache.php:24
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
HasNoNamedObjective
ilUserSetupAgent\getBuildArtifactObjective
getBuildArtifactObjective()
Definition:
class.ilUserSetupAgent.php:68
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
ilUserDB90
Definition:
class.ilUserDB90.php:28
ilUserSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilUserSetupAgent.php:54
ilUserSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilUserSetupAgent.php:35
Services
User
classes
Setup
class.ilUserSetupAgent.php
Generated on Wed Sep 10 2025 14:12:01 for ILIAS by
1.8.13 (using
Doxyfile
)