ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilVirusScannerSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Refinery
;
22
use
ILIAS\Refinery\Factory
;
23
use
ILIAS\Setup
;
24
25
class
ilVirusScannerSetupAgent
implements
Setup\Agent
26
{
27
use Setup\Agent\HasNoNamedObjective;
28
29
protected
Factory
$refinery
;
30
31
public
function
__construct
(
32
Factory
$refinery
33
) {
34
$this->
refinery
=
$refinery
;
35
}
36
37
public
function
hasConfig
(): bool
38
{
39
return
true
;
40
}
41
42
public
function
getArrayToConfigTransformation
():
Refinery
\
Transformation
43
{
44
return
$this->
refinery
->custom()->transformation(fn(
$data
):
ilVirusScannerSetupConfig
=>
new
ilVirusScannerSetupConfig
(
45
$data
[
'virusscanner'
] ??
ilVirusScannerSetupConfig::VIRUS_SCANNER_NONE
,
46
$data
[
'path_to_scan'
] ??
null
,
47
$data
[
'path_to_clean'
] ??
null
,
48
$data
[
'icap_host'
] ??
null
,
49
$data
[
'icap_port'
] ??
null
,
50
$data
[
'icap_service_name'
] ??
null
,
51
$data
[
'icap_client_path'
] ??
null
,
52
));
53
}
54
55
public
function
getInstallObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
56
{
57
return
new
ilVirusScannerConfigStoredObjective
($config);
58
}
59
60
public
function
getUpdateObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
61
{
62
if
($config !==
null
) {
63
return
new
ilVirusScannerConfigStoredObjective
($config);
64
}
65
66
return
new
Setup\Objective\NullObjective
();
67
}
68
69
public
function
getBuildObjective
():
Setup
\
Objective
70
{
71
return
new
Setup\Objective\NullObjective
();
72
}
73
74
public
function
getStatusObjective
(?
Setup
\Metrics\
Storage
$storage):
Setup
\
Objective
75
{
76
return
new
ilVirusScannerMetricsCollectedObjective
($storage);
77
}
78
79
public
function
getMigrations
(): array
80
{
81
return
[];
82
}
83
}
ILIAS\Data\Color\Factory
Builds a Color from either hex- or rgb values.
Definition:
Factory.php:31
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
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
ilVirusScannerConfigStoredObjective
Definition:
class.ilVirusScannerConfigStoredObjective.php:24
ilVirusScannerMetricsCollectedObjective
Definition:
class.ilVirusScannerMetricsCollectedObjective.php:24
ilVirusScannerSetupAgent
Definition:
class.ilVirusScannerSetupAgent.php:26
ilVirusScannerSetupAgent\getStatusObjective
getStatusObjective(?Setup\Metrics\Storage $storage)
Definition:
class.ilVirusScannerSetupAgent.php:74
ilVirusScannerSetupAgent\hasConfig
hasConfig()
Definition:
class.ilVirusScannerSetupAgent.php:37
ilVirusScannerSetupAgent\__construct
__construct(Factory $refinery)
Definition:
class.ilVirusScannerSetupAgent.php:31
ilVirusScannerSetupAgent\$refinery
Factory $refinery
Definition:
class.ilVirusScannerSetupAgent.php:29
ilVirusScannerSetupAgent\getBuildObjective
getBuildObjective()
Definition:
class.ilVirusScannerSetupAgent.php:69
ilVirusScannerSetupAgent\getInstallObjective
getInstallObjective(?Setup\Config $config=null)
Definition:
class.ilVirusScannerSetupAgent.php:55
ilVirusScannerSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilVirusScannerSetupAgent.php:42
ilVirusScannerSetupAgent\getUpdateObjective
getUpdateObjective(?Setup\Config $config=null)
Definition:
class.ilVirusScannerSetupAgent.php:60
ilVirusScannerSetupAgent\getMigrations
getMigrations()
Definition:
class.ilVirusScannerSetupAgent.php:79
ilVirusScannerSetupConfig
Definition:
class.ilVirusScannerSetupConfig.php:24
ilVirusScannerSetupConfig\VIRUS_SCANNER_NONE
const VIRUS_SCANNER_NONE
Definition:
class.ilVirusScannerSetupConfig.php:25
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
VirusScanner
classes
Setup
class.ilVirusScannerSetupAgent.php
Generated on Sat Oct 18 2025 23:04:59 for ILIAS by
1.9.4 (using
Doxyfile
)