ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Interface to the sophos virus protector. More...
Public Member Functions | |
__construct ($a_scancommand, $a_cleancommand) | |
Constructor public. More... | |
scanFile ($a_filepath, $a_origname="") | |
scan a file for viruses More... | |
cleanFile ($a_filepath, $a_origname="") | |
clean an infected file More... | |
Public Member Functions inherited from ilVirusScanner | |
__construct ($a_scancommand, $a_cleancommand) | |
Constructor public. More... | |
scanBuffer ($buffer) | |
scanFile ($a_filepath, $a_origname="") | |
scan a file for viruses needs to be redefined in child classes here it simulates a scan "infected.txt" or "cleanable.txt" are expected to be infected More... | |
cleanFile ($a_filepath, $a_origname="") | |
clean an infected file needs to be redefined in child classes here it simulates a clean "cleanable.txt" is expected to be cleanable More... | |
fileCleaned () | |
returns wether file has been cleaned successfully or not More... | |
logScanResult () | |
write the result of the last scan to the log public More... | |
logCleanResult () | |
write the result of the last clean to the log public More... | |
getScanResult () | |
get the pure output of the external scan More... | |
getCleanResult () | |
get the pure output of the external scan More... | |
getScanMessage () | |
get a located message with the result from the last scan More... | |
getCleanMessage () | |
get a located message with the result from the last clean More... | |
getScanZipFiles () | |
get info if class can scan ZIP files More... | |
Additional Inherited Members | |
Data Fields inherited from ilVirusScanner | |
$type | |
$scanZipFiles | |
$scanCommand | |
$cleanCommand | |
$scanFilePath | |
$scanFileOrigName | |
$cleanFilePath | |
$cleanFileOrigName | |
$scanFileIsInfected | |
$cleanFileIsCleaned | |
$scanResult | |
$cleanResult | |
$ilias | |
$lng | |
$log | |
Protected Member Functions inherited from ilVirusScanner | |
scanFileFromBuffer ($buffer) | |
createBufferFile ($buffer) | |
removeBufferFile ($bufferFile) | |
Interface to the sophos virus protector.
Definition at line 13 of file class.ilVirusScannerSophos.php.
ilVirusScannerSophos::__construct | ( | $a_scancommand, | |
$a_cleancommand | |||
) |
Constructor public.
string | virus scanner command |
Definition at line 20 of file class.ilVirusScannerSophos.php.
ilVirusScannerSophos::cleanFile | ( | $a_filepath, | |
$a_origname = "" |
|||
) |
clean an infected file
string | path of file to check |
string | original name of the file to check |
Definition at line 116 of file class.ilVirusScannerSophos.php.
References ilVirusScanner\$cleanResult, $cmd, $out, $ret, and ilVirusScanner\logCleanResult().
ilVirusScannerSophos::scanFile | ( | $a_filepath, | |
$a_origname = "" |
|||
) |
scan a file for viruses
string | path of file to check |
string | original name of the file to ckeck |
Definition at line 34 of file class.ilVirusScannerSophos.php.
References $cmd, $out, $ret, ilVirusScanner\$scanResult, and ilVirusScanner\logScanResult().