ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilVirusScannerFactory Class Reference

Factory for virus scanner class(es) More...

+ Collaboration diagram for ilVirusScannerFactory:

Static Public Member Functions

static _getInstance ()
 

Detailed Description

Factory for virus scanner class(es)

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 9 of file class.ilVirusScannerFactory.php.

Member Function Documentation

◆ _getInstance()

static ilVirusScannerFactory::_getInstance ( )
static
Returns
ilVirusScannerAntiVir|ilVirusScannerClamAV|ilVirusScannerSophos|null

Definition at line 14 of file class.ilVirusScannerFactory.php.

Referenced by ilQTIParser\virusDetected(), and ilUtil\virusHandling().

15  {
16  // create global virus scanner class instance
17  switch(IL_VIRUS_SCANNER)
18  {
19  case "Sophos":
20  require_once("./Services/VirusScanner/classes/class.ilVirusScannerSophos.php");
21  $vs = new ilVirusScannerSophos(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
22  return $vs;
23  break;
24 
25  case "AntiVir":
26  require_once("./Services/VirusScanner/classes/class.ilVirusScannerAntiVir.php");
27  $vs = new ilVirusScannerAntiVir(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
28  return $vs;
29  break;
30 
31  case "ClamAV":
32  require_once("./Services/VirusScanner/classes/class.ilVirusScannerClamAV.php");
33  $vs = new ilVirusScannerClamAV(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
34  return $vs;
35  break;
36 
37  default:
38  return null;
39  break;
40  }
41  }
Interface to the AntiVir virus protector.
Interface to the ClamAV virus protector.
Interface to the sophos virus protector.
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: