| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Manager class for antivirus integration.
| Copyright: | 2015 Ruslan Kabalin, Lancaster University. |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 104 lines (3 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
manager:: (4 methods):
get_enabled()
scan_file()
get_antivirus()
get_available()
| get_enabled() X-Ref |
| Returns list of enabled antiviruses. return: array Array ('antivirusname'=>stdClass antivirus object). |
| scan_file($file, $filename, $deleteinfected) X-Ref |
| Scan file using all enabled antiviruses, throws exception in case of infected file. param: string $file Full path to the file. param: string $filename Name of the file (could be different from physical file if temp file is used). param: bool $deleteinfected whether infected file needs to be deleted. return: void |
| get_antivirus($antivirusname) X-Ref |
| Returns instance of antivirus. param: string $antivirusname name of antivirus. return: object|bool antivirus instance or false if does not exist. |
| get_available() X-Ref |
| Get the list of available antiviruses. return: array Array ('antivirusname'=>'localised antivirus name'). |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |