ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilGlobalCacheConfigStoredObjective Class Reference
+ Inheritance diagram for ilGlobalCacheConfigStoredObjective:
+ Collaboration diagram for ilGlobalCacheConfigStoredObjective:

Public Member Functions

 __construct (\ilGlobalCacheSettings $settings)
 
 getHash ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 

Protected Attributes

 $settings
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilGlobalCacheConfigStoredObjective::__construct ( \ilGlobalCacheSettings  $settings)

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

References $settings, and settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ achieve()

ilGlobalCacheConfigStoredObjective::achieve ( Setup\Environment  $environment)

Definition at line 43 of file class.ilGlobalCacheConfigStoredObjective.php.

References ILIAS\Setup\Environment\getResource(), and settings().

43  : Setup\Environment
44  {
45  $client_ini = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_INI);
46 
47  $this->settings->writeToIniFile($client_ini);
48 
49  if (!$client_ini->write()) {
50  throw new Setup\UnachievableException("Could not write client.ini.php");
51  }
52 
53  return $environment;
54  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ getHash()

ilGlobalCacheConfigStoredObjective::getHash ( )

Definition at line 20 of file class.ilGlobalCacheConfigStoredObjective.php.

20  : string
21  {
22  return hash("sha256", self::class);
23  }

◆ getLabel()

ilGlobalCacheConfigStoredObjective::getLabel ( )

Definition at line 25 of file class.ilGlobalCacheConfigStoredObjective.php.

25  : string
26  {
27  return "Store configuration of Services/GlobalCache";
28  }

◆ getPreconditions()

ilGlobalCacheConfigStoredObjective::getPreconditions ( Setup\Environment  $environment)

Definition at line 35 of file class.ilGlobalCacheConfigStoredObjective.php.

35  : array
36  {
37  $common_config = $environment->getConfigFor("common");
38  return [
39  new ilIniFilesPopulatedObjective($common_config),
40  ];
41  }

◆ isNotable()

ilGlobalCacheConfigStoredObjective::isNotable ( )

Definition at line 30 of file class.ilGlobalCacheConfigStoredObjective.php.

30  : bool
31  {
32  return false;
33  }

Field Documentation

◆ $settings

ilGlobalCacheConfigStoredObjective::$settings
protected

Definition at line 12 of file class.ilGlobalCacheConfigStoredObjective.php.

Referenced by __construct().


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