19declare(strict_types=1);
35 return hash(
'sha256', self::class);
40 return 'Fill ini with settings for components/ILIAS/VirusScanner_';
60 $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
62 $ini->setVariable(
'tools',
'vscantype', $this->config->getVirusScanner());
63 $ini->setVariable(
'tools',
'scancommand', (
string) $this->config->getPathToScan());
64 $ini->setVariable(
'tools',
'cleancommand', (
string) $this->config->getPathToClean());
65 $ini->setVariable(
'tools',
'icap_host', (
string) $this->config->getIcapHost());
66 $ini->setVariable(
'tools',
'icap_port', (
string) $this->config->getIcapPort());
67 $ini->setVariable(
'tools',
'icap_service_name', (
string) $this->config->getIcapServiceName());
68 $ini->setVariable(
'tools',
'icap_client_path', (
string) $this->config->getIcapClientPath());
79 $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
82 $ini->readVariable(
'tools',
'vscantype') !== $this->config->getVirusScanner() ||
83 $ini->readVariable(
'tools',
'scancommand') !== $this->config->getPathToScan() ||
84 $ini->readVariable(
'tools',
'cleancommand') !== $this->config->getPathToClean() ||
85 $ini->readVariable(
'tools',
'icap_host') !== $this->config->getIcapHost() ||
86 $ini->readVariable(
'tools',
'icap_port') !== $this->config->getIcapPort() ||
87 $ini->readVariable(
'tools',
'icap_service_name') !== $this->config->getIcapServiceName() ||
88 $ini->readVariable(
'tools',
'icap_client_path') !== $this->config->getIcapClientPath();
Signals that some goal won't be achievable by actions of the system ever.
achieve(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
ilVirusScannerSetupConfig $config
__construct(ilVirusScannerSetupConfig $config)
An environment holds resources to be used in the setup process.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...