ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilGlobalCacheConfigStoredObjective Class Reference
+ Inheritance diagram for ilGlobalCacheConfigStoredObjective:
+ Collaboration diagram for ilGlobalCacheConfigStoredObjective:

Public Member Functions

 __construct (protected \ilGlobalCacheSettingsAdapter $settings)
 
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 isApplicable (Environment $environment)
 
- Public Member Functions inherited from ILIAS\Setup\Objective
 achieve (Environment $environment)
 Objectives can be achieved. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilGlobalCacheConfigStoredObjective::__construct ( protected \ilGlobalCacheSettingsAdapter  $settings)

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

26  {
27  }

Member Function Documentation

◆ getHash()

ilGlobalCacheConfigStoredObjective::getHash ( )

Get a hash for this objective.

The hash of two objectives must be the same, if they are the same objective, with the same config on the same environment, i.e. if the one is achieved the other is achieved as well because they are the same.

Implements ILIAS\Setup\Objective.

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

29  : string
30  {
31  return hash("sha256", self::class);
32  }

◆ getLabel()

ilGlobalCacheConfigStoredObjective::getLabel ( )

Get a label that describes this objective.

Implements ILIAS\Setup\Objective.

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

34  : string
35  {
36  return "Store configuration of components/ILIAS/GlobalCache_";
37  }

◆ getPreconditions()

ilGlobalCacheConfigStoredObjective::getPreconditions ( Environment  $environment)

Objectives might depend on other objectives.

Exceptions
UnachievableExceptionif the objective is not achievable
Returns
Objective[]

Implements ILIAS\Setup\Objective.

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

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

44  : array
45  {
46  return [
48  ];
49  }
+ Here is the call graph for this function:

◆ isApplicable()

ilGlobalCacheConfigStoredObjective::isApplicable ( Environment  $environment)

Implements ILIAS\Setup\Objective.

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

76  : bool
77  {
78  // The effort to check the whole ini file is too big here.
79  return true;
80  }

◆ isNotable()

ilGlobalCacheConfigStoredObjective::isNotable ( )

Get to know if this is an interesting objective for a human.

Implements ILIAS\Setup\Objective.

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

39  : bool
40  {
41  return false;
42  }

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