19 declare(strict_types=1);
46 string $virus_scanner,
47 ?
string $path_to_scan,
48 ?
string $path_to_clean,
51 ?
string $icap_service_name,
52 ?
string $icap_client_path
55 self::VIRUS_SCANNER_NONE,
56 self::VIRUS_SCANNER_SOPHOS,
57 self::VIRUS_SCANNER_ANTIVIR,
58 self::VIRUS_SCANNER_CLAMAV,
59 self::VIRUS_SCANNER_ICAP
61 if (!in_array($virus_scanner, $scanners)) {
63 "Unknown virus scanner: '$virus_scanner'" 66 if ($virus_scanner === self::VIRUS_SCANNER_ICAP) {
71 } elseif ($virus_scanner !== self::VIRUS_SCANNER_NONE && (!$path_to_scan || !$path_to_clean)) {
73 'Missing path to scan and/or clean commands for virus scanner.' 87 return preg_replace(
"/\\\\/",
'/', $p);
const VIRUS_SCANNER_ANTIVIR
__construct(string $virus_scanner, ?string $path_to_scan, ?string $path_to_clean, ?string $icap_host, ?string $icap_port, ?string $icap_service_name, ?string $icap_client_path)
toLinuxConvention(?string $p)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const VIRUS_SCANNER_SOPHOS
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const VIRUS_SCANNER_CLAMAV
string $icap_service_name