ILIAS  release_8 Revision v8.24
ilVirusScannerSetupAgent Class Reference
+ Inheritance diagram for ilVirusScannerSetupAgent:
+ Collaboration diagram for ilVirusScannerSetupAgent:

Public Member Functions

 __construct (Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 

Protected Attributes

Factory $refinery
 

Detailed Description

Definition at line 25 of file class.ilVirusScannerSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilVirusScannerSetupAgent::__construct ( Factory  $refinery)

Definition at line 31 of file class.ilVirusScannerSetupAgent.php.

References $refinery, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilVirusScannerSetupAgent::getArrayToConfigTransformation ( )

Definition at line 42 of file class.ilVirusScannerSetupAgent.php.

42 : Refinery\Transformation
43 {
44 return $this->refinery->custom()->transformation(fn ($data): ilVirusScannerSetupConfig => new ilVirusScannerSetupConfig(
46 $data["path_to_scan"] ?? null,
47 $data["path_to_clean"] ?? null,
48 $data["icap_host"] ?? null,
49 $data["icap_port"] ?? null,
50 $data["icap_service_name"] ?? null,
51 $data["icap_client_path"] ?? null,
52 ));
53 }

References $data, ILIAS\Repository\refinery(), and ilVirusScannerSetupConfig\VIRUS_SCANNER_NONE.

+ Here is the call graph for this function:

◆ getBuildArtifactObjective()

ilVirusScannerSetupAgent::getBuildArtifactObjective ( )

Definition at line 68 of file class.ilVirusScannerSetupAgent.php.

68 : Setup\Objective
69 {
70 return new Setup\Objective\NullObjective();
71 }

◆ getInstallObjective()

ilVirusScannerSetupAgent::getInstallObjective ( Setup\Config  $config = null)

Definition at line 55 of file class.ilVirusScannerSetupAgent.php.

55 : Setup\Objective
56 {
58 }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85

References $config.

◆ getMigrations()

ilVirusScannerSetupAgent::getMigrations ( )

Definition at line 78 of file class.ilVirusScannerSetupAgent.php.

78 : array
79 {
80 return [];
81 }

◆ getStatusObjective()

ilVirusScannerSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

◆ getUpdateObjective()

ilVirusScannerSetupAgent::getUpdateObjective ( Setup\Config  $config = null)

Definition at line 60 of file class.ilVirusScannerSetupAgent.php.

60 : Setup\Objective
61 {
62 if ($config !== null) {
64 }
65 return new Setup\Objective\NullObjective();
66 }

References $config.

◆ hasConfig()

ilVirusScannerSetupAgent::hasConfig ( )

Definition at line 37 of file class.ilVirusScannerSetupAgent.php.

37 : bool
38 {
39 return true;
40 }

Field Documentation

◆ $refinery

Factory ilVirusScannerSetupAgent::$refinery
protected

Definition at line 29 of file class.ilVirusScannerSetupAgent.php.

Referenced by __construct().


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