ILIAS  release_7 Revision v7.30-3-g800a261c036
ilVirusScannerSetupAgent Class Reference
+ Inheritance diagram for ilVirusScannerSetupAgent:
+ Collaboration diagram for ilVirusScannerSetupAgent:

Public Member Functions

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

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilVirusScannerSetupAgent::__construct ( Refinery\Factory  $refinery)

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

21 {
22 $this->refinery = $refinery;
23 }

References $refinery.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilVirusScannerSetupAgent::getArrayToConfigTransformation ( )

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

36 : Refinery\Transformation
37 {
38 return $this->refinery->custom()->transformation(function ($data) {
39 return new \ilVirusScannerSetupConfig(
41 $data["path_to_scan"] ?? null,
42 $data["path_to_clean"] ?? null,
43 $data["icap_host"] ?? null,
44 $data["icap_port"] ?? null,
45 $data["icap_service_name"] ?? null,
46 $data["icap_client_path"] ?? null,
47 );
48 });
49 }
$data
Definition: storeScorm.php:23

References $data, and ilVirusScannerSetupConfig\VIRUS_SCANNER_NONE.

◆ getBuildArtifactObjective()

ilVirusScannerSetupAgent::getBuildArtifactObjective ( )

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

73 : Setup\Objective
74 {
75 return new Setup\Objective\NullObjective();
76 }

◆ getInstallObjective()

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

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

54 : Setup\Objective
55 {
57 }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

References $config.

◆ getMigrations()

ilVirusScannerSetupAgent::getMigrations ( )

@inheritDoc

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

89 : array
90 {
91 return [];
92 }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

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

62 : Setup\Objective
63 {
64 if ($config !== null) {
66 }
67 return new Setup\Objective\NullObjective();
68 }

References $config.

◆ hasConfig()

ilVirusScannerSetupAgent::hasConfig ( )

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

28 : bool
29 {
30 return true;
31 }

Field Documentation

◆ $refinery

ilVirusScannerSetupAgent::$refinery
protected

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

Referenced by __construct().


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