ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Interface to the ClamAV virus protector. More...
Public Member Functions | |
ilVirusScannerClamAV ($a_scancommand, $a_cleancommand) | |
Constructor public. More... | |
scanBuffer ($buffer) | |
scanFile ($a_filepath, $a_origname="") | |
scan a file for viruses More... | |
![]() | |
ilVirusScanner ($a_scancommand, $a_cleancommand) | |
Constructor public. More... | |
scanBuffer ($buffer) | |
scanFile ($a_filepath, $a_origname="") | |
scan a file for viruses More... | |
cleanFile ($a_filepath, $a_origname="") | |
clean an infected file More... | |
fileCleaned () | |
returns wether file has been cleaned successfully or not More... | |
logScanResult () | |
write the result of the last scan to the log More... | |
logCleanResult () | |
write the result of the last clean to the log 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... | |
Data Fields | |
const | ADD_SCAN_PARAMS = '--no-summary -i' |
![]() | |
$type | |
$scanZipFiles | |
$scanCommand | |
$cleanCommand | |
$scanFilePath | |
$scanFileOrigName | |
$cleanFilePath | |
$cleanFileOrigName | |
$scanFileIsInfected | |
$cleanFileIsCleaned | |
$scanResult | |
$cleanResult | |
$ilias | |
$lng | |
$log | |
Protected Member Functions | |
buildScanCommand ($file='-') | |
isBufferScanPossible () | |
processBufferScan ($buffer) | |
hasDetections ($detectionReport) | |
![]() | |
scanFileFromBuffer ($buffer) | |
createBufferFile ($buffer) | |
removeBufferFile ($bufferFile) | |
Interface to the ClamAV virus protector.
Definition at line 15 of file class.ilVirusScannerClamAV.php.
|
protected |
Definition at line 34 of file class.ilVirusScannerClamAV.php.
References $file.
Referenced by processBufferScan(), and scanFile().
|
protected |
$detectionReport |
Definition at line 114 of file class.ilVirusScannerClamAV.php.
Referenced by processBufferScan(), and scanFile().
ilVirusScannerClamAV::ilVirusScannerClamAV | ( | $a_scancommand, | |
$a_cleancommand | |||
) |
Constructor public.
string | virus scanner command |
Definition at line 24 of file class.ilVirusScannerClamAV.php.
References ilVirusScanner\ilVirusScanner().
|
protected |
Definition at line 42 of file class.ilVirusScannerClamAV.php.
Referenced by scanBuffer().
|
protected |
string | $buffer | (any data, binary) |
Definition at line 77 of file class.ilVirusScannerClamAV.php.
References buildScanCommand(), and hasDetections().
Referenced by scanBuffer().
ilVirusScannerClamAV::scanBuffer | ( | $buffer | ) |
string | $buffer | (any data, binary) |
Definition at line 63 of file class.ilVirusScannerClamAV.php.
References isBufferScanPossible(), processBufferScan(), and ilVirusScanner\scanFileFromBuffer().
ilVirusScannerClamAV::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 127 of file class.ilVirusScannerClamAV.php.
References $cmd, $out, $ret, ilVirusScanner\$scanResult, buildScanCommand(), hasDetections(), and ilVirusScanner\logScanResult().
const ilVirusScannerClamAV::ADD_SCAN_PARAMS = '--no-summary -i' |
Definition at line 17 of file class.ilVirusScannerClamAV.php.