ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilVirusScannerFactory Class Reference

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

+ Collaboration diagram for ilVirusScannerFactory:

Public Member Functions

_getInstance ()
 Constructor public.

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:
class.ilVirusScannerFactory.php 20150 2009-06-08 18:02:33Z akill

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

Member Function Documentation

& ilVirusScannerFactory::_getInstance ( )

Constructor public.

Parameters
stringvirus scanner command

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

Referenced by ilUtil\virusHandling().

{
// create global virus scanner class instance
switch (IL_VIRUS_SCANNER)
{
case "Sophos":
require_once("classes/class.ilVirusScannerSophos.php");
$vs = new ilVirusScannerSophos(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
return $vs;
break;
case "AntiVir":
require_once("classes/class.ilVirusScannerAntiVir.php");
$vs = new ilVirusScannerAntiVir(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
return $vs;
break;
case "ClamAV":
require_once("classes/class.ilVirusScannerClamAV.php");
$vs = new ilVirusScannerClamAV(IL_VIRUS_SCAN_COMMAND, IL_VIRUS_CLEAN_COMMAND);
return $vs;
break;
default:
return null;
break;
}
}

+ Here is the caller graph for this function:


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