11 return hash(
"sha256", implode(
"-", [
13 $this->config->getHost(),
14 $this->config->getPort(),
15 $this->config->getDatabase()
21 return "The database exists on the server.";
32 new \ilDatabaseServerIsConnectableObjective($this->config)
34 if ($this->config->getCreateDatabase()) {
35 $preconditions[] = new \ilDatabaseCreatedObjective($this->config);
37 return $preconditions;
43 $db->initFromIniFile($this->config->toMockIniFile());
44 $connect = $db->connect(
true);
46 throw new Setup\UnachievableException(
47 "Database cannot be connected. Please check the credentials." 50 return $environment->withResource(Setup\Environment::RESOURCE_DATABASE, $db);
static getWrapper($a_type)
isApplicable(Setup\Environment $environment)
achieve(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.
getPreconditions(Setup\Environment $environment)