61 self::VIRUS_SCANNER_NONE,
62 self::VIRUS_SCANNER_SOPHOS,
63 self::VIRUS_SCANNER_ANTIVIR,
64 self::VIRUS_SCANNER_CLAMAV,
65 self::VIRUS_SCANNER_ICAP
67 if (!in_array($virus_scanner, $scanners)) {
68 throw new \InvalidArgumentException(
69 "Unknown virus scanner: '$virus_scanner'" 72 if($virus_scanner === self::VIRUS_SCANNER_ICAP) {
77 } elseif ($virus_scanner !== self::VIRUS_SCANNER_NONE && (!$path_to_scan || !$path_to_clean)) {
78 throw new \InvalidArgumentException(
79 "Missing path to scan and/or clean commands for virus scanner." 92 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)
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