22 return hash(
"sha256", self::class);
27 return "Fill ini with settings for Services/VirusScanner";
44 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
46 $ini->setVariable(
"tools",
"vscantype", $this->config->getVirusScanner());
47 $ini->setVariable(
"tools",
"scancommand", $this->config->getPathToScan());
48 $ini->setVariable(
"tools",
"cleancommand", $this->config->getPathToClean());
49 $ini->setVariable(
"tools",
"icap_host", $this->config->getIcapHost());
50 $ini->setVariable(
"tools",
"icap_port", $this->config->getIcapPort());
51 $ini->setVariable(
"tools",
"icap_service_name", $this->config->getIcapServiceName());
52 $ini->setVariable(
"tools",
"icap_client_path", $this->config->getIcapClientPath());
55 throw new Setup\UnachievableException(
"Could not write ilias.ini.php");
66 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
69 $ini->readVariable(
"tools",
"vscantype") !== $this->config->getVirusScanner() ||
70 $ini->readVariable(
"tools",
"scancommand") !== $this->config->getPathToScan() ||
71 $ini->readVariable(
"tools",
"cleancommand") !== $this->config->getPathToClean() ||
72 $ini->readVariable(
"tools",
"icap_host") !== $this->config->getIcapHost() ||
73 $ini->readVariable(
"tools",
"icap_port") !== $this->config->getIcapPort() ||
74 $ini->readVariable(
"tools",
"icap_service_name") !== $this->config->getIcapServiceName() ||
75 $ini->readVariable(
"tools",
"icap_client_path") !== $this->config->getIcapClientPath()
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
__construct(\ilVirusScannerSetupConfig $config)