ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
ilVirusScannerFactory Class Reference

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

+ Collaboration diagram for ilVirusScannerFactory:

Public Member Functions

_getInstance ()
 Constructor public. More...
 

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 13 of file class.ilVirusScannerFactory.php.

Member Function Documentation

◆ _getInstance()

& ilVirusScannerFactory::_getInstance ( )

Constructor public.

Parameters
stringvirus scanner command

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

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

21  {
22  // create global virus scanner class instance
23  switch (IL_VIRUS_SCANNER)
24  {
25  case "Sophos":
26  require_once("./Services/VirusScanner/classes/class.ilVirusScannerSophos.php");
27  $vs = new ilVirusScannerSophos(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
28  return $vs;
29  break;
30 
31  case "AntiVir":
32  require_once("./Services/VirusScanner/classes/class.ilVirusScannerAntiVir.php");
33  $vs = new ilVirusScannerAntiVir(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
34  return $vs;
35  break;
36 
37  case "ClamAV":
38  require_once("./Services/VirusScanner/classes/class.ilVirusScannerClamAV.php");
39  $vs = new ilVirusScannerClamAV(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
40  return $vs;
41  break;
42 
43  default:
44  return null;
45  break;
46  }
47  }
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: