◆ achieve()
ilIniFilesLoadedObjective::achieve |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 71 of file class.ilIniFilesLoadedObjective.php.
References $client_id, $ini, $path, and getClientDir().
73 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
75 throw new Setup\UnachievableException(
76 "To initialize the ini-files, we need a client id, but it does not " .
77 "exist in the environment." 81 if ($environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI) == null) {
82 $path = dirname(__DIR__, 2) .
"/ilias.ini.php";
85 $environment = $environment
86 ->withResource(Setup\Environment::RESOURCE_ILIAS_INI,
$ini);
89 if ($environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI) == null) {
93 $environment = $environment
94 ->withResource(Setup\Environment::RESOURCE_CLIENT_INI, $client_ini);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ getClientDir()
ilIniFilesLoadedObjective::getClientDir |
( |
|
$client_id | ) |
|
|
protected |
◆ getHash()
ilIniFilesLoadedObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilIniFilesLoadedObjective::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilIniFilesLoadedObjective::getPreconditions |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 57 of file class.ilIniFilesLoadedObjective.php.
59 if (self::$might_populate_ini_files_as_well) {
61 new Setup\Objective\ClientIdReadObjective(),
66 new Setup\Objective\ClientIdReadObjective(),
◆ isApplicable()
ilIniFilesLoadedObjective::isApplicable |
( |
Setup\Environment |
$environment | ) |
|
Definition at line 103 of file class.ilIniFilesLoadedObjective.php.
References $ini.
105 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
106 $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
108 return is_null(
$ini) || is_null($client_ini);
◆ isNotable()
ilIniFilesLoadedObjective::isNotable |
( |
| ) |
|
◆ $might_populate_ini_files_as_well
bool ilIniFilesLoadedObjective::$might_populate_ini_files_as_well = true |
|
static |
The documentation for this class was generated from the following file: