ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
class.ilStyleSetupAgent.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
use
ILIAS\Setup
;
6
use
ILIAS\Refinery
;
7
use
ILIAS\Data
;
8
use
ILIAS\UI
;
9
10
class
ilStyleSetupAgent
implements
Setup\Agent
11
{
15
protected
$refinery
;
16
17
public
function
__construct
(
18
Refinery\
Factory
$refinery
19
) {
20
$this->refinery =
$refinery
;
21
}
22
26
public
function
hasConfig
() : bool
27
{
28
return
true
;
29
}
30
34
public
function
getConfigInput
(Setup\
Config
$config
=
null
) :
UI
\
Component
\Input\Field\Input
35
{
36
throw
new \LogicException(
"Not yet implemented."
);
37
}
38
42
public
function
getArrayToConfigTransformation
() : Refinery\
Transformation
43
{
44
return
$this->refinery->custom()->transformation(
function
(
$data
) {
45
return
new \ilStyleSetupConfig(
46
$data
[
"manage_system_styles"
] ??
false
,
47
$data
[
"path_to_lessc"
] ??
null
48
);
49
});
50
}
51
55
public
function
getInstallObjective
(Setup\
Config
$config
=
null
) : Setup\
Objective
56
{
57
return
new
Setup\ObjectiveCollection
(
58
"Complete objectives from Services/Style"
,
59
false
,
60
new
ilStyleConfigStoredObjective
(
$config
)
61
);
62
}
63
67
public
function
getUpdateObjective
(Setup\
Config
$config
=
null
) : Setup\
Objective
68
{
69
return
new
ilStyleReplaceResponsiveLogoObjective
();
70
}
71
75
public
function
getBuildArtifactObjective
() : Setup\
Objective
76
{
77
return
new
ilKitchenSinkDataCollectedObjective
();
78
}
79
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:20
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved.
Definition:
ObjectiveCollection.php:13
ilKitchenSinkDataCollectedObjective
Definition:
class.ilKitchenSinkDataCollectedObjective.php:7
ilStyleConfigStoredObjective
Definition:
class.ilStyleConfigStoredObjective.php:9
ilStyleReplaceResponsiveLogoObjective
Definition:
class.ilStyleReplaceResponsiveLogoObjective.php:13
ilStyleSetupAgent
Definition:
class.ilStyleSetupAgent.php:11
ilStyleSetupAgent\getInstallObjective
getInstallObjective(Setup\Config $config=null)
Definition:
class.ilStyleSetupAgent.php:55
ilStyleSetupAgent\getConfigInput
getConfigInput(Setup\Config $config=null)
Definition:
class.ilStyleSetupAgent.php:34
ilStyleSetupAgent\hasConfig
hasConfig()
Definition:
class.ilStyleSetupAgent.php:26
ilStyleSetupAgent\__construct
__construct(Refinery\Factory $refinery)
Definition:
class.ilStyleSetupAgent.php:17
ilStyleSetupAgent\getBuildArtifactObjective
getBuildArtifactObjective()
Definition:
class.ilStyleSetupAgent.php:75
ilStyleSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilStyleSetupAgent.php:67
ilStyleSetupAgent\$refinery
$refinery
Definition:
class.ilStyleSetupAgent.php:15
ilStyleSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilStyleSetupAgent.php:42
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:18
ILIAS\Setup\Agent
A agent is some component that performs part of the setup process.
Definition:
Agent.php:14
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:11
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup.
Definition:
Objective.php:15
ILIAS\UI\Component\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:14
$config
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition:
metadata.php:68
ILIAS\Data
Definition:
Alphanumeric.php:10
ILIAS\Refinery
Definition:
Constraint.php:5
ILIAS\Setup
Definition:
AchievementTracker.php:5
ILIAS\UI
UI
Class Factory.
$data
$data
Definition:
storeScorm.php:23
Services
Style
classes
Setup
class.ilStyleSetupAgent.php
Generated on Fri Oct 3 2025 20:01:09 for ILIAS by
1.9.4 (using
Doxyfile
)