|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Interface to the ClamAV virus protector. More...
Inheritance diagram for ilVirusScannerClamAV:
Collaboration diagram for ilVirusScannerClamAV:Public Member Functions | |
| __construct ($a_scancommand, $a_cleancommand) | |
| Constructor @access public. More... | |
| scanBuffer ($buffer) | |
| scanFile ($a_filepath, $a_origname="") | |
| scan a file for viruses More... | |
Public Member Functions inherited from ilVirusScanner | |
| __construct ($a_scancommand, $a_cleancommand) | |
| Constructor @access 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 @access public More... | |
| logCleanResult () | |
| write the result of the last clean to the log @access 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... | |
Data Fields | |
| const | ADD_SCAN_PARAMS = '--no-summary -i' |
Data Fields inherited from ilVirusScanner | |
| $type | |
| $scanZipFiles | |
| $scanCommand | |
| $cleanCommand | |
| $scanFilePath | |
| $scanFileOrigName | |
| $cleanFilePath | |
| $cleanFileOrigName | |
| $scanFileIsInfected | |
| $cleanFileIsCleaned | |
| $scanResult | |
| $cleanResult | |
| $ilias | |
| $lng | |
| $log | |
Protected Member Functions | |
| buildScanCommandArguments ($file='-') | |
| isBufferScanPossible () | |
| processBufferScan ($buffer) | |
| hasDetections ($detectionReport) | |
Protected Member Functions inherited from ilVirusScanner | |
| scanFileFromBuffer ($buffer) | |
| createBufferFile ($buffer) | |
| removeBufferFile ($bufferFile) | |
Interface to the ClamAV virus protector.
Definition at line 13 of file class.ilVirusScannerClamAV.php.
| ilVirusScannerClamAV::__construct | ( | $a_scancommand, | |
| $a_cleancommand | |||
| ) |
Constructor @access public.
| string | virus scanner command |
Reimplemented from ilVirusScanner.
Definition at line 22 of file class.ilVirusScannerClamAV.php.
References ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
protected |
Definition at line 32 of file class.ilVirusScannerClamAV.php.
Referenced by processBufferScan(), and scanFile().
Here is the caller graph for this function:
|
protected |
| $detectionReport |
Definition at line 108 of file class.ilVirusScannerClamAV.php.
Referenced by processBufferScan(), and scanFile().
Here is the caller graph for this function:
|
protected |
Definition at line 40 of file class.ilVirusScannerClamAV.php.
Referenced by scanBuffer().
Here is the caller graph for this function:
|
protected |
| string | $buffer | (any data, binary) |
Definition at line 72 of file class.ilVirusScannerClamAV.php.
References buildScanCommandArguments(), and hasDetections().
Referenced by scanBuffer().
Here is the call graph for this function:
Here is the caller graph for this function:| ilVirusScannerClamAV::scanBuffer | ( | $buffer | ) |
| string | $buffer | (any data, binary) |
Reimplemented from ilVirusScanner.
Definition at line 59 of file class.ilVirusScannerClamAV.php.
References isBufferScanPossible(), processBufferScan(), and ilVirusScanner\scanFileFromBuffer().
Here is the call graph for this function:| 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 |
Reimplemented from ilVirusScanner.
Definition at line 120 of file class.ilVirusScannerClamAV.php.
References $out, ilVirusScanner\$scanResult, buildScanCommandArguments(), ilUtil\escapeShellArg(), ilUtil\escapeShellCmd(), ilUtil\execQuoted(), hasDetections(), and ilVirusScanner\logScanResult().
Here is the call graph for this function:| const ilVirusScannerClamAV::ADD_SCAN_PARAMS = '--no-summary -i' |
Definition at line 15 of file class.ilVirusScannerClamAV.php.