| 
    dolibarr
    x.y.z
    
   | 
 
Class to scan for virus. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor.  More... | |
| dol_avscan_file ($file) | |
| Scan a file with antivirus.  More... | |
| getCliCommand ($file) | |
| Get full Command Line to run.  More... | |
Class to scan for virus.
Definition at line 30 of file antivir.class.php.
| AntiVir::__construct | ( | $db | ) | 
| AntiVir::dol_avscan_file | ( | $file | ) | 
Scan a file with antivirus.
This function runs the command defined in setup. This antivirus command must return 0 if OK. Return also true (virus found) if file end with '.virus' (so we can make test safely).
| string | $file | File to scan | 
Definition at line 71 of file antivir.class.php.
| AntiVir::getCliCommand | ( | $file | ) | 
Get full Command Line to run.
| string | $file | File to scan | 
Definition at line 156 of file antivir.class.php.