ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
◀ ilDoc Overview
class.ilForumSetupAgent.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
ilForumSetupAgent
implements
Setup\Agent
25
{
26
use Setup\Agent\HasNoNamedObjective;
27
28
public
function
hasConfig
(): bool
29
{
30
return
false
;
31
}
32
33
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
34
{
35
throw
new
LogicException(
"Agent has no config."
);
36
}
37
38
public
function
getInstallObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
39
{
40
return
new
ilFileSystemComponentDataDirectoryCreatedObjective
(
41
'forum'
,
42
ilFileSystemComponentDataDirectoryCreatedObjective::DATADIR
43
);
44
}
45
46
public
function
getUpdateObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
47
{
48
return
new
Setup\ObjectiveCollection
(
49
'Forum'
,
50
true
,
51
new
ilDatabaseUpdateStepsExecutedObjective
(
52
new
ilForumDatabaseUpdateSteps11
()
53
)
54
);
55
}
56
57
public
function
getBuildObjective
():
Setup
\
Objective
58
{
59
return
new
Setup\Objective\NullObjective
();
60
}
61
62
public
function
getStatusObjective
(
Setup
\Metrics\
Storage
$storage):
Setup
\
Objective
63
{
64
return
new
Setup\ObjectiveCollection
(
65
'Component Forum'
,
66
true
,
67
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilForumDatabaseUpdateSteps11
())
68
);
69
}
70
71
public
function
getMigrations
(): array
72
{
73
return
[];
74
}
75
}
ILIAS\Refinery
Definition:
Refinery.php:24
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:
class.ilDatabaseUpdateStepsExecutedObjective.php:28
ilDatabaseUpdateStepsMetricsCollectedObjective
Definition:
class.ilDatabaseUpdateStepsMetricsCollectedObjective.php:27
ilFileSystemComponentDataDirectoryCreatedObjective
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:25
ilFileSystemComponentDataDirectoryCreatedObjective\DATADIR
const DATADIR
Definition:
class.ilFileSystemComponentDataDirectoryCreatedObjective.php:26
ilForumDatabaseUpdateSteps11
Definition:
class.ilForumDatabaseUpdateSteps11.php:22
ilForumSetupAgent
Definition:
class.ilForumSetupAgent.php:25
ilForumSetupAgent\getInstallObjective
getInstallObjective(?Setup\Config $config=null)
Definition:
class.ilForumSetupAgent.php:38
ilForumSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilForumSetupAgent.php:57
ilForumSetupAgent\getMigrations
getMigrations()
Definition:
class.ilForumSetupAgent.php:71
ilForumSetupAgent\getUpdateObjective
getUpdateObjective(?Setup\Config $config=null)
Definition:
class.ilForumSetupAgent.php:46
ilForumSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilForumSetupAgent.php:62
ilForumSetupAgent\hasConfig
hasConfig()
Definition:
class.ilForumSetupAgent.php:28
ilForumSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilForumSetupAgent.php:33
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
ILIAS\Refinery
Definition:
ByTrying.php:21
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
Forum
classes
Setup
class.ilForumSetupAgent.php
Generated on Sat Dec 13 2025 23:02:22 for ILIAS by
1.9.4 (using
Doxyfile
)