Class used for various antivirus related stuff.
More...
|
static | get_antivirus ($antivirusname) |
| Returns instance of antivirus. More...
|
|
static | get_available () |
| Get the list of available antiviruses. More...
|
|
static | scan_data ($data) |
| Scan data steam using all enabled antiviruses, throws exception in case of infected data. More...
|
|
static | scan_file ($file, $filename, $deleteinfected) |
| Scan file using all enabled antiviruses, throws exception in case of infected file. More...
|
|
Class used for various antivirus related stuff.
- Copyright
- 2015 Ruslan Kabalin, Lancaster University.
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_antivirus()
static core\antivirus\manager::get_antivirus |
( |
|
$antivirusname | ) |
|
|
static |
Returns instance of antivirus.
- Parameters
-
string | $antivirusname | name of antivirus. |
- Return values
-
object|bool | antivirus instance or false if does not exist. |
◆ get_available()
static core\antivirus\manager::get_available |
( |
| ) |
|
|
static |
Get the list of available antiviruses.
- Return values
-
array | Array ('antivirusname'=>'localised antivirus name'). |
◆ scan_data()
static core\antivirus\manager::scan_data |
( |
|
$data | ) |
|
|
static |
Scan data steam using all enabled antiviruses, throws exception in case of infected data.
- Parameters
-
string | $data | The varaible containing the data to scan. |
- Exceptions
-
- Return values
-
◆ scan_file()
static core\antivirus\manager::scan_file |
( |
|
$file, |
|
|
|
$filename, |
|
|
|
$deleteinfected |
|
) |
| |
|
static |
Scan file using all enabled antiviruses, throws exception in case of infected file.
- Parameters
-
string | $file | Full path to the file. |
string | $filename | Name of the file (could be different from physical file if temp file is used). |
bool | $deleteinfected | whether infected file needs to be deleted. |
- Exceptions
-
- Return values
-
The documentation for this class was generated from the following file: