19 declare(strict_types=1);
28 return hash(
"sha256", implode(
"-", [
30 $this->config->getHost(),
31 $this->config->getPort(),
32 $this->config->getDatabase()
38 return "The database is created on the server.";
52 new \ilDatabaseServerIsConnectableObjective($this->config)
60 $db->initFromIniFile(
$c->toMockIniFile());
62 if (!$db->createDatabase(
$c->getDatabase(),
"utf8",
$c->getCollation())) {
64 "Database cannot be created." 78 $db->initFromIniFile(
$c->toMockIniFile());
80 $connect = $db->connect(
true);
static getWrapper(string $a_type)
achieve(Environment $environment)
Objectives can be achieved.
getHash()
Get a hash for this objective.
Signals that some goal won't be achievable by actions of the system ever.
isNotable()
Get to know if this is an interesting objective for a human.
An environment holds resources to be used in the setup process.
getPreconditions(Environment $environment)
isApplicable(Environment $environment)
getLabel()
Get a label that describes this objective.