|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Interface to the ClamAV virus protector. More...
Inheritance diagram for ilVirusScannerICapRemote:
Collaboration diagram for ilVirusScannerICapRemote:Public Member Functions | |
| __construct ($a_scancommand, $a_cleancommand) | |
| ilVirusScannerICap constructor. More... | |
| options ($service) | |
| getRequest ($method, $service, $body=[], $headers=[]) | |
| send ($request) | |
| getLastSocketError () | |
| Get last error code from socket object. More... | |
| respMod ($service, $body=[], $headers=[]) | |
| reqMod ($service, $body=[], $headers=[]) | |
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 | |
| $userAgent = 'PHP-CLIENT/0.1.0' | |
Data Fields inherited from ilVirusScanner | |
| $type | |
| $scanZipFiles | |
| $scanCommand | |
| $cleanCommand | |
| $scanFilePath | |
| $scanFileOrigName | |
| $cleanFilePath | |
| $cleanFileOrigName | |
| $scanFileIsInfected | |
| $cleanFileIsCleaned | |
| $scanResult | |
| $cleanResult | |
| $ilias | |
| $lng | |
| $log | |
Private Member Functions | |
| connect () | |
| disconnect () | |
| parseResponse ($string) | |
Private Attributes | |
| $host | |
| $port | |
| $socket | |
Additional Inherited Members | |
Protected Member Functions inherited from ilVirusScanner | |
| scanFileFromBuffer ($buffer) | |
| createBufferFile ($buffer) | |
| removeBufferFile ($bufferFile) | |
Interface to the ClamAV virus protector.
Definition at line 15 of file class.ilVirusScannerICapRemote.php.
| ilVirusScannerICapRemote::__construct | ( | $a_scancommand, | |
| $a_cleancommand | |||
| ) |
ilVirusScannerICap constructor.
| $a_scancommand | |
| $a_cleancommand |
Reimplemented from ilVirusScanner.
Reimplemented in ilVirusScannerICapRemoteAvClient.
Definition at line 31 of file class.ilVirusScannerICapRemote.php.
References ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
private |
| ErrorException |
Definition at line 135 of file class.ilVirusScannerICapRemote.php.
References Vendor\Package\$e.
Referenced by send().
Here is the caller graph for this function:
|
private |
Definition at line 161 of file class.ilVirusScannerICapRemote.php.
Referenced by send().
Here is the caller graph for this function:| ilVirusScannerICapRemote::getLastSocketError | ( | ) |
Get last error code from socket object.
Definition at line 153 of file class.ilVirusScannerICapRemote.php.
Referenced by send().
Here is the caller graph for this function:| ilVirusScannerICapRemote::getRequest | ( | $method, | |
| $service, | |||
$body = [], |
|||
$headers = [] |
|||
| ) |
| $method | ||
| $service | ||
| array | $body | |
| array | $headers |
Definition at line 59 of file class.ilVirusScannerICapRemote.php.
References $data, $host, $section, ilVirusScanner\$type, and $userAgent.
Referenced by options(), reqMod(), and respMod().
Here is the caller graph for this function:| ilVirusScannerICapRemote::options | ( | $service | ) |
| $service |
Definition at line 42 of file class.ilVirusScannerICapRemote.php.
References $response, $service, getRequest(), parseResponse(), and send().
Referenced by ilVirusScannerICapRemoteAvClient\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| $string |
Definition at line 171 of file class.ilVirusScannerICapRemote.php.
References $data, $param, $response, and $section.
Referenced by options(), reqMod(), and respMod().
Here is the caller graph for this function:| ilVirusScannerICapRemote::reqMod | ( | $service, | |
$body = [], |
|||
$headers = [] |
|||
| ) |
| $service | ||
| array | $body | |
| array | $headers |
Definition at line 255 of file class.ilVirusScannerICapRemote.php.
References $response, $service, getRequest(), parseResponse(), and send().
Here is the call graph for this function:| ilVirusScannerICapRemote::respMod | ( | $service, | |
$body = [], |
|||
$headers = [] |
|||
| ) |
| $service | ||
| array | $body | |
| array | $headers |
Definition at line 242 of file class.ilVirusScannerICapRemote.php.
References $response, $service, getRequest(), parseResponse(), and send().
Here is the call graph for this function:| ilVirusScannerICapRemote::send | ( | $request | ) |
| $request |
Definition at line 115 of file class.ilVirusScannerICapRemote.php.
References Vendor\Package\$e, $response, connect(), disconnect(), and getLastSocketError().
Referenced by options(), reqMod(), and respMod().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 18 of file class.ilVirusScannerICapRemote.php.
Referenced by getRequest().
|
private |
Definition at line 20 of file class.ilVirusScannerICapRemote.php.
|
private |
Definition at line 22 of file class.ilVirusScannerICapRemote.php.
| ilVirusScannerICapRemote::$userAgent = 'PHP-CLIENT/0.1.0' |
Definition at line 24 of file class.ilVirusScannerICapRemote.php.
Referenced by getRequest().