ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilVirusScannerFactory Class Reference

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

+ Collaboration diagram for ilVirusScannerFactory:

Public Member Functions

_getInstance ()
 Constructor @access 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 @access public.

Parameters
stringvirus scanner command

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

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.

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

+ Here is the caller graph for this function:

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