ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
return
new
Setup\Objective\NullObjective();
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
ilVirusScannerMetricsCollectedObjective
($storage);
76
}
77
78
public
function
getMigrations
(): array
79
{
80
return
[];
81
}
82
}
ilVirusScannerSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilVirusScannerSetupAgent.php:42
ilVirusScannerSetupAgent
Definition:
class.ilVirusScannerSetupAgent.php:25
$data
$data
Definition:
ltiregistration.php:31
ilVirusScannerSetupAgent\getMigrations
getMigrations()
Definition:
class.ilVirusScannerSetupAgent.php:78
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
ILIAS\Refinery
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ByTrying.php:21
ilVirusScannerSetupConfig\VIRUS_SCANNER_NONE
const VIRUS_SCANNER_NONE
Definition:
class.ilVirusScannerSetupConfig.php:25
$config
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition:
metadata.php:85
ilVirusScannerSetupConfig
Definition:
class.ilVirusScannerSetupConfig.php:23
ilVirusScannerMetricsCollectedObjective
Definition:
class.ilVirusScannerMetricsCollectedObjective.php:23
ilVirusScannerSetupAgent\__construct
__construct(Factory $refinery)
Definition:
class.ilVirusScannerSetupAgent.php:31
ilVirusScannerSetupAgent\getInstallObjective
getInstallObjective(Setup\Config $config=null)
Definition:
class.ilVirusScannerSetupAgent.php:55
ILIAS\Repository\refinery
refinery()
Definition:
trait.GlobalDICDomainServices.php:71
ilVirusScannerSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilVirusScannerSetupAgent.php:73
Factory
ilVirusScannerSetupAgent\$refinery
Factory $refinery
Definition:
class.ilVirusScannerSetupAgent.php:29
ilVirusScannerSetupAgent\hasConfig
hasConfig()
Definition:
class.ilVirusScannerSetupAgent.php:37
ilVirusScannerSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilVirusScannerSetupAgent.php:60
ilVirusScannerConfigStoredObjective
Definition:
class.ilVirusScannerConfigStoredObjective.php:23
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
ilVirusScannerSetupAgent\getBuildArtifactObjective
getBuildArtifactObjective()
Definition:
class.ilVirusScannerSetupAgent.php:68
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
HasNoNamedObjective
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
Services
VirusScanner
classes
Setup
class.ilVirusScannerSetupAgent.php
Generated on Tue Apr 1 2025 22:02:39 for ILIAS by
1.8.13 (using
Doxyfile
)