ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilIniFilesLoadedObjective Class Reference
+ Inheritance diagram for ilIniFilesLoadedObjective:
+ Collaboration diagram for ilIniFilesLoadedObjective:

Public Member Functions

 getHash ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
- Public Member Functions inherited from ilSetupObjective
 __construct (\ilSetupConfig $config)
 

Protected Member Functions

 getClientDir ()
 

Additional Inherited Members

- Protected Attributes inherited from ilSetupObjective
 $config
 

Detailed Description

Definition at line 7 of file class.ilIniFilesLoadedObjective.php.

Member Function Documentation

◆ achieve()

ilIniFilesLoadedObjective::achieve ( Setup\Environment  $environment)

Definition at line 29 of file class.ilIniFilesLoadedObjective.php.

29 : Setup\Environment
30 {
31 $path = dirname(__DIR__, 2) . "/ilias.ini.php";
32 $ini = new ilIniFile($path);
33
34 $path = $this->getClientDir() . "/client.ini.php";
35 $client_ini = new ilIniFile($path);
36
37 return $environment
38 ->withResource(Setup\Environment::RESOURCE_ILIAS_INI, $ini)
39 ->withResource(Setup\Environment::RESOURCE_CLIENT_INI, $client_ini);
40 }
INIFile Parser.
$ini
Definition: raiseError.php:4

References $ini, and getClientDir().

+ Here is the call graph for this function:

◆ getClientDir()

ilIniFilesLoadedObjective::getClientDir ( )
protected

Definition at line 42 of file class.ilIniFilesLoadedObjective.php.

42 : string
43 {
44 return dirname(__DIR__, 2) . "/data/" . $this->config->getClientId();
45 }

Referenced by achieve().

+ Here is the caller graph for this function:

◆ getHash()

ilIniFilesLoadedObjective::getHash ( )

Definition at line 9 of file class.ilIniFilesLoadedObjective.php.

9 : string
10 {
11 return hash("sha256", self::class);
12 }

◆ getLabel()

ilIniFilesLoadedObjective::getLabel ( )

Definition at line 14 of file class.ilIniFilesLoadedObjective.php.

14 : string
15 {
16 return "The ilias.ini.php and client.ini.php are loaded";
17 }

◆ getPreconditions()

ilIniFilesLoadedObjective::getPreconditions ( Setup\Environment  $environment)

Definition at line 24 of file class.ilIniFilesLoadedObjective.php.

24 : array
25 {
26 return [];
27 }

◆ isNotable()

ilIniFilesLoadedObjective::isNotable ( )

Definition at line 19 of file class.ilIniFilesLoadedObjective.php.

19 : bool
20 {
21 return false;
22 }

The documentation for this class was generated from the following file: