ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 getBuildObjective ()
 
 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:

◆ getBuildObjective()

ilVirusScannerSetupAgent::getBuildObjective ( )

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

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

◆ getInstallObjective()

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

◆ getMigrations()

ilVirusScannerSetupAgent::getMigrations ( )

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

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

◆ 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) {
63 return new ilVirusScannerConfigStoredObjective($config);
64 }
65
66 return new Setup\Objective\NullObjective();
67 }

◆ 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: