ILIAS
release_4-3 Revision
|
Interface to the sophos virus protector. More...
Public Member Functions | |
ilVirusScannerSophos ($a_scancommand, $a_cleancommand) | |
Constructor public. | |
scanFile ($a_filepath, $a_origname="") | |
scan a file for viruses | |
cleanFile ($a_filepath, $a_origname="") | |
clean an infected file | |
Public Member Functions inherited from ilVirusScanner | |
ilVirusScanner ($a_scancommand, $a_cleancommand) | |
Constructor public. | |
fileCleaned () | |
returns wether file has been cleaned successfully or not | |
logScanResult () | |
write the result of the last scan to the log | |
logCleanResult () | |
write the result of the last clean to the log | |
getScanResult () | |
get the pure output of the external scan | |
getCleanResult () | |
get the pure output of the external scan | |
getScanMessage () | |
get a located message with the result from the last scan | |
getCleanMessage () | |
get a located message with the result from the last clean | |
getScanZipFiles () | |
get info if class can scan ZIP files |
Additional Inherited Members | |
Data Fields inherited from ilVirusScanner | |
$type | |
$scanZipFiles | |
$scanCommand | |
$cleanCommand | |
$scanFilePath | |
$scanFileOrigName | |
$cleanFilePath | |
$cleanFileOrigName | |
$scanFileIsInfected | |
$cleanFileIsCleaned | |
$scanResult | |
$cleanResult | |
$ilias | |
$lng | |
$log |
Interface to the sophos virus protector.
Definition at line 16 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 |
Reimplemented from ilVirusScanner.
Definition at line 121 of file class.ilVirusScannerSophos.php.
References ilVirusScanner\$cleanResult, $cmd, $out, $ret, and ilVirusScanner\logCleanResult().
ilVirusScannerSophos::ilVirusScannerSophos | ( | $a_scancommand, | |
$a_cleancommand | |||
) |
Constructor public.
string | virus scanner command |
Definition at line 23 of file class.ilVirusScannerSophos.php.
References ilVirusScanner\ilVirusScanner().
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 |
Reimplemented from ilVirusScanner.
Definition at line 38 of file class.ilVirusScannerSophos.php.
References $cmd, $out, $ret, ilVirusScanner\$scanResult, and ilVirusScanner\logScanResult().