ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilVirusScannerSetupAgent.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
ilVirusScannerSetupAgent
implements
Setup\Agent
11
{
12
use
Setup\Agent\HasNoNamedObjective
;
13
17
protected
$refinery
;
18
19
public
function
__construct
(
20
Refinery
\
Factory
$refinery
21
) {
22
$this->refinery =
$refinery
;
23
}
24
28
public
function
hasConfig
() : bool
29
{
30
return
true
;
31
}
32
36
public
function
getArrayToConfigTransformation
() :
Refinery
\
Transformation
37
{
38
return
$this->refinery->custom()->transformation(
function
(
$data
) {
39
return
new \ilVirusScannerSetupConfig(
40
$data
[
"virusscanner"
] ?? \
ilVirusScannerSetupConfig::VIRUS_SCANNER_NONE
,
41
$data
[
"path_to_scan"
] ?? null,
42
$data
[
"path_to_clean"
] ?? null,
43
$data
[
"icap_host"
] ?? null,
44
$data
[
"icap_port"
] ?? null,
45
$data
[
"icap_service_name"
] ?? null,
46
$data
[
"icap_client_path"
] ?? null,
47
);
48
});
49
}
50
54
public
function
getInstallObjective
(Setup\
Config
$config
= null) : Setup\
Objective
55
{
56
return
new
ilVirusScannerConfigStoredObjective
(
$config
);
57
}
58
62
public
function
getUpdateObjective
(Setup\
Config
$config
= null) : Setup\
Objective
63
{
64
if
(
$config
!== null) {
65
return
new
ilVirusScannerConfigStoredObjective
(
$config
);
66
}
67
return
new
Setup\Objective\NullObjective();
68
}
69
73
public
function
getBuildArtifactObjective
() : Setup\
Objective
74
{
75
return
new
Setup\Objective\NullObjective();
76
}
77
81
public
function
getStatusObjective
(Setup\Metrics\Storage $storage) : Setup\
Objective
82
{
83
return
new
ilVirusScannerMetricsCollectedObjective
($storage);
84
}
85
89
public
function
getMigrations
() : array
90
{
91
return
[];
92
}
93
}
ilVirusScannerSetupAgent\$refinery
$refinery
Definition:
class.ilVirusScannerSetupAgent.php:17
ilVirusScannerSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilVirusScannerSetupAgent.php:36
ilVirusScannerSetupAgent
Definition:
class.ilVirusScannerSetupAgent.php:10
ilVirusScannerSetupAgent\getMigrations
getMigrations()
Definition:
class.ilVirusScannerSetupAgent.php:89
$data
$data
Definition:
storeScorm.php:23
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup...
Definition:
Objective.php:14
ILIAS\Refinery
Definition:
ByTrying.php:5
ilVirusScannerSetupConfig\VIRUS_SCANNER_NONE
const VIRUS_SCANNER_NONE
Definition:
class.ilVirusScannerSetupConfig.php:10
$config
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition:
metadata.php:68
ilVirusScannerMetricsCollectedObjective
Definition:
class.ilVirusScannerMetricsCollectedObjective.php:7
ilVirusScannerSetupAgent\getInstallObjective
getInstallObjective(Setup\Config $config=null)
Definition:
class.ilVirusScannerSetupAgent.php:54
ilVirusScannerSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilVirusScannerSetupAgent.php:81
Factory
ilVirusScannerSetupAgent\hasConfig
hasConfig()
Definition:
class.ilVirusScannerSetupAgent.php:28
ilVirusScannerSetupAgent\__construct
__construct(Refinery\Factory $refinery)
Definition:
class.ilVirusScannerSetupAgent.php:19
ilVirusScannerSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilVirusScannerSetupAgent.php:62
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
ilVirusScannerConfigStoredObjective
Definition:
class.ilVirusScannerConfigStoredObjective.php:7
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AdminInteraction.php:5
ilVirusScannerSetupAgent\getBuildArtifactObjective
getBuildArtifactObjective()
Definition:
class.ilVirusScannerSetupAgent.php:73
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:17
ILIAS\UI
HasNoNamedObjective
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:10
ILIAS\Data
Definition:
Alphanumeric.php:10
Services
VirusScanner
classes
Setup
class.ilVirusScannerSetupAgent.php
Generated on Sun Apr 20 2025 21:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)