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.ilVirusScannerFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilVirusScannerFactory
22
{
23
public
static
function
_getInstance
(): ?
ilVirusScanner
24
{
25
$vs = null;
26
27
if
(IL_VIRUS_SCANNER ===
"icap"
) {
28
if
(strlen(IL_ICAP_CLIENT) > 0) {
29
$vs =
new
ilVirusScannerICapClient
(
''
,
''
);
30
}
else
{
31
$vs =
new
ilVirusScannerICapRemoteAvClient
(
''
,
''
);
32
}
33
}
else
{
34
switch
(IL_VIRUS_SCANNER) {
35
case
"Sophos"
:
36
$vs =
new
ilVirusScannerSophos
(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
37
break
;
38
case
"AntiVir"
:
39
global
$DIC
;
40
$DIC->logger()->root()->error(
'AntiVir is deprecated, please install and use a different virus scanner.'
);
41
$vs =
new
ilVirusScannerAntiVir
(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
42
break
;
43
case
"ClamAV"
:
44
$vs =
new
ilVirusScannerClamAV
(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
45
break
;
46
}
47
}
48
return
$vs;
49
}
50
}
ilVirusScannerFactory\_getInstance
static _getInstance()
Definition:
class.ilVirusScannerFactory.php:23
ilVirusScannerAntiVir
Definition:
class.ilVirusScannerAntiVir.php:21
ilVirusScannerICapClient
Definition:
class.ilVirusScannerICapClient.php:21
ilVirusScannerICapRemoteAvClient
Definition:
class.ilVirusScannerICapRemoteAvClient.php:21
$DIC
global $DIC
Definition:
feed.php:28
ilVirusScannerFactory
Definition:
class.ilVirusScannerFactory.php:21
ilVirusScannerClamAV
Definition:
class.ilVirusScannerClamAV.php:21
ilVirusScanner
Definition:
class.ilVirusScanner.php:21
ilVirusScannerSophos
Definition:
class.ilVirusScannerSophos.php:21
Services
VirusScanner
classes
class.ilVirusScannerFactory.php
Generated on Thu Apr 10 2025 22:02:50 for ILIAS by
1.8.13 (using
Doxyfile
)