Quarantine file.  
 More...
|  | 
| const | DEFAULT_QUARANTINE_FOLDER = 'antivirus_quarantine' | 
|  | Default quarantine folder. 
 | 
|  | 
| const | DEFAULT_QUARANTINE_TIME = DAYSECS * 28 | 
|  | Incident details file. 
 | 
|  | 
| const | FILE_HTML_DETAILS = '_details.html' | 
|  | Incident details file. 
 | 
|  | 
| const | FILE_NAME_DATE_FORMAT = '%Y%m%d%H%M%S' | 
|  | Date format in filename. 
 | 
|  | 
| const | FILE_ZIP_ALL_INFECTED = '_all_infected_files.zip' | 
|  | Zip all infected file. 
 | 
|  | 
| const | FILE_ZIP_INFECTED = '_infected_file.zip' | 
|  | Zip infected file 
 
 | 
|  | 
◆ clean_up_quarantine_folder()
  
  | 
        
          | static core\antivirus\quarantine::clean_up_quarantine_folder | ( | int | $timetocleanup | ) |  |  | static | 
 
Clean up quarantine folder. 
- Parameters
- 
  
    | int | $timetocleanup | time to clean up |  
 
 
 
◆ delete_quarantined_file()
  
  | 
        
          | static core\antivirus\quarantine::delete_quarantined_file | ( | int | $fileid | ) |  |  | static | 
 
Delete quarantined file. 
- Parameters
- 
  
    | int | $fileid | id of file to be deleted. |  
 
 
 
◆ download_all_quarantined_files()
  
  | 
        
          | static core\antivirus\quarantine::download_all_quarantined_files | ( |  | ) |  |  | static | 
 
Download all quarantined files. 
- Return values
- 
  
  
 
 
◆ download_quarantined_file()
  
  | 
        
          | static core\antivirus\quarantine::download_quarantined_file | ( | int | $fileid | ) |  |  | static | 
 
Download quarantined file. 
- Parameters
- 
  
    | int | $fileid | the id of file to be downloaded. |  
 
 
 
◆ get_quarantined_files()
  
  | 
        
          | static core\antivirus\quarantine::get_quarantined_files | ( |  | ) |  |  | static | 
 
Return array of quarantined files. 
- Return values
- 
  
    | array | list of quarantined files. |  
 
 
 
◆ is_quarantine_enabled()
  
  | 
        
          | static core\antivirus\quarantine::is_quarantine_enabled | ( |  | ) |  |  | static | 
 
Check if the virus quarantine is allowed. 
- Return values
- 
  
  
- Exceptions
- 
  
  
 
 
◆ quarantine_data()
  
  | 
        
          | static core\antivirus\quarantine::quarantine_data | ( | string | $data, |  
          |  |  | string | $filename, |  
          |  |  | string | $incidentdetails, |  
          |  |  | string | $notice ) |  | static | 
 
Move the infected file to the quarantine folder. 
- Parameters
- 
  
    | string | $data | data which is infected. |  | string | $filename | infected file name. |  | string | $incidentdetails | incident details. |  | string | $notice | notice details. |  
 
- Return values
- 
  
    | string|null | the name of the newly created quarantined file. |  
 
- Exceptions
- 
  
  
 
 
◆ quarantine_file()
  
  | 
        
          | static core\antivirus\quarantine::quarantine_file | ( | string | $file, |  
          |  |  | string | $filename, |  
          |  |  | string | $incidentdetails, |  
          |  |  | string | $notice ) |  | static | 
 
Move the infected file to the quarantine folder. 
- Parameters
- 
  
    | string | $file | infected file. |  | string | $filename | infected file name. |  | string | $incidentdetails | incident details. |  | string | $notice | notice details. |  
 
- Return values
- 
  
    | string|null | the name of the newly created quarantined file. |  
 
- Exceptions
- 
  
  
 
 
◆ quarantined_file_exists()
  
  | 
        
          | static core\antivirus\quarantine::quarantined_file_exists | ( | string | $filename | ) |  |  | static | 
 
Checks whether a file exists inside the antivirus quarantine folder. 
- Parameters
- 
  
    | string | $filename | the filename to check. |  
 
- Return values
- 
  
    | boolean | whether file exists. |  
 
 
 
The documentation for this class was generated from the following file: