◆ collectFrom()
  
  
      
        
          | ilVirusScannerMetricsCollectedObjective::collectFrom  | 
          ( | 
          Setup\Environment  | 
          $environment,  | 
         
        
           | 
           | 
          Setup\Metrics\Storage  | 
          $storage  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Definition at line 35 of file class.ilVirusScannerMetricsCollectedObjective.php.
References $ini, ilVirusScannerSetupConfig\VIRUS_SCANNER_ICAP, and ilVirusScannerSetupConfig\VIRUS_SCANNER_NONE.
   37         $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
    42         $virus_scanner = 
$ini->readVariable(
'tools', 
'vscantype');
    43         $storage->storeConfigText(
    46             'The engine that is used for virus scanning.'    50             $storage->storeConfigText(
    52                 $ini->readVariable(
'tools', 
'icap_client_path'),
    53                 'The configured ICAP client path.'    55             $storage->storeConfigText(
    57                 $ini->readVariable(
'tools', 
'icap_host'),
    58                 'The configured ICAP host.'    60             $storage->storeConfigText(
    62                 $ini->readVariable(
'tools', 
'icap_port'),
    63                 'The configured ICAP port.'    65             $storage->storeConfigText(
    67                 $ini->readVariable(
'tools', 
'icap_service_name'),
    68                 'The configured ICAP service name.'    70         } elseif (is_string($virus_scanner) &&
    71             $virus_scanner !== 
'' &&
    73             $storage->storeConfigText(
    75                 $ini->readVariable(
'tools', 
'scancommand'),
    76                 'The path to the binary that is used for virus scanning.'    78             $storage->storeConfigText(
    80                 $ini->readVariable(
'tools', 
'cleancommand'),
    81                 'The path to the binary that is used for cleaning up after virus scanning.' 
 
 
 
◆ getTentativePreconditions()
  
  
      
        
          | ilVirusScannerMetricsCollectedObjective::getTentativePreconditions  | 
          ( | 
          Setup\Environment  | 
          $environment | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: