ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
class.ilTestQuestionPoolSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
use
ILIAS\Setup\Agent\NullAgent
;
20
use
ILIAS\Setup\Objective
;
21
use
ILIAS\Setup\ObjectiveCollection
;
22
use
ILIAS\Setup\Objective\NullObjective
;
23
use
ILIAS\Setup\Metrics
;
24
25
class
ilTestQuestionPoolSetupAgent
extends
NullAgent
26
{
27
public
function
getUpdateObjective
(?
ILIAS
\
Setup
\
Config
$config =
null
):
ILIAS
\
Setup
\
Objective
28
{
29
return
new
ObjectiveCollection
(
30
'Database is updated for component/ILIAS/TestQuestionPool'
,
31
false
,
32
new
ilDatabaseUpdateStepsExecutedObjective
(
33
new
ilTestQuestionPool9DBUpdateSteps
()
34
),
35
new
ilDatabaseUpdateStepsExecutedObjective
(
36
new
ilTestQuestionPool10DBUpdateSteps
()
37
)
38
);
39
}
40
41
public
function
getStatusObjective
(Metrics\
Storage
$storage):
Objective
42
{
43
return
new
ObjectiveCollection
(
44
'component/ILIAS/TestQuestionPool'
,
45
true
,
46
new
ilDatabaseUpdateStepsMetricsCollectedObjective
(
47
$storage,
48
new
ilTestQuestionPool9DBUpdateSteps
()
49
),
50
new
ilDatabaseUpdateStepsMetricsCollectedObjective
(
51
$storage,
52
new
ilTestQuestionPool10DBUpdateSteps
()
53
)
54
);
55
}
56
57
public
function
getMigrations
(): array
58
{
59
return
[
60
new
ilTestQuestionPoolFileUploadQuestionMigration
()
61
];
62
}
63
64
public
function
getBuildObjective
():
Objective
65
{
66
return
new
NullObjective
();
67
}
68
69
}
ILIAS\Setup\Agent\NullAgent
An agent that just doesn't do a thing.
Definition:
NullAgent.php:35
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved.
Definition:
ObjectiveCollection.php:27
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:29
ILIAS\Setup
Definition:
Setup.php:26
ilDatabaseUpdateStepsExecutedObjective
This class attempt to achieve a set of database update steps.
Definition:
ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
ilDatabaseUpdateStepsMetricsCollectedObjective.php:27
ilTestQuestionPool10DBUpdateSteps
Definition:
class.ilTestQuestionPool10DBUpdateSteps.php:22
ilTestQuestionPool9DBUpdateSteps
Definition:
class.ilTestQuestionPool9DBUpdateSteps.php:22
ilTestQuestionPoolFileUploadQuestionMigration
Definition:
class.ilTestQuestionPoolFileUploadQuestionMigration.php:23
ilTestQuestionPoolSetupAgent
Definition:
class.ilTestQuestionPoolSetupAgent.php:26
ilTestQuestionPoolSetupAgent\getBuildObjective
getBuildObjective()
@inheritdocs
Definition:
class.ilTestQuestionPoolSetupAgent.php:64
ilTestQuestionPoolSetupAgent\getMigrations
getMigrations()
@inheritDoc
Definition:
class.ilTestQuestionPoolSetupAgent.php:57
ilTestQuestionPoolSetupAgent\getStatusObjective
getStatusObjective(Metrics\Storage $storage)
@inheritdocs
Definition:
class.ilTestQuestionPoolSetupAgent.php:41
ilTestQuestionPoolSetupAgent\getUpdateObjective
getUpdateObjective(?ILIAS\Setup\Config $config=null)
@inheritdocs
Definition:
class.ilTestQuestionPoolSetupAgent.php:27
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:27
ILIAS\Setup\Metrics\Storage
Definition:
Storage.php:24
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\Setup\Metrics
Definition:
ArrayStorage.php:21
ILIAS\Setup\Objective
Definition:
AdminConfirmedObjective.php:21
ILIAS
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
components
ILIAS
TestQuestionPool
classes
Setup
class.ilTestQuestionPoolSetupAgent.php
Generated on Wed Nov 11 2026 23:10:45 for ILIAS by
1.9.4 (using
Doxyfile
)