ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPrivacySecurityConfigStoredObjective Class Reference

Store information about https is enabled. More...

+ Inheritance diagram for ilPrivacySecurityConfigStoredObjective:
+ Collaboration diagram for ilPrivacySecurityConfigStoredObjective:

Public Member Functions

 __construct (\ilPrivacySecuritySetupConfig $config)
 
 getHash ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
 isApplicable (Setup\Environment $environment)
 

Protected Member Functions

 bool2string (bool $value)
 

Protected Attributes

 $config
 

Detailed Description

Store information about https is enabled.

Definition at line 11 of file class.ilPrivacySecurityConfigStoredObjective.php.

Constructor & Destructor Documentation

◆ __construct()

ilPrivacySecurityConfigStoredObjective::__construct ( \ilPrivacySecuritySetupConfig  $config)

Member Function Documentation

◆ achieve()

ilPrivacySecurityConfigStoredObjective::achieve ( Setup\Environment  $environment)

Definition at line 47 of file class.ilPrivacySecurityConfigStoredObjective.php.

References $factory, and bool2string().

47  : Setup\Environment
48  {
49  $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
50  $settings = $factory->settingsFor("common");
51  $settings->set("https", $this->bool2string($this->config->getForceHttpsOnLogin()));
52 
53  return $environment;
54  }
$factory
Definition: metadata.php:58
+ Here is the call graph for this function:

◆ bool2string()

ilPrivacySecurityConfigStoredObjective::bool2string ( bool  $value)
protected

Definition at line 64 of file class.ilPrivacySecurityConfigStoredObjective.php.

Referenced by achieve().

64  : string
65  {
66  if ($value) {
67  return "1";
68  }
69  return "0";
70  }
+ Here is the caller graph for this function:

◆ getHash()

ilPrivacySecurityConfigStoredObjective::getHash ( )

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

23  : string
24  {
25  return hash("sha256", self::class);
26  }

◆ getLabel()

ilPrivacySecurityConfigStoredObjective::getLabel ( )

Definition at line 28 of file class.ilPrivacySecurityConfigStoredObjective.php.

28  : string
29  {
30  return "Store information about privacy security in settings";
31  }

◆ getPreconditions()

ilPrivacySecurityConfigStoredObjective::getPreconditions ( Setup\Environment  $environment)

Definition at line 38 of file class.ilPrivacySecurityConfigStoredObjective.php.

38  : array
39  {
40  $common_config = $environment->getConfigFor("common");
41  return [
42  new \ilIniFilesPopulatedObjective($common_config),
43  new \ilSettingsFactoryExistsObjective()
44  ];
45  }

◆ isApplicable()

ilPrivacySecurityConfigStoredObjective::isApplicable ( Setup\Environment  $environment)

Definition at line 59 of file class.ilPrivacySecurityConfigStoredObjective.php.

59  : bool
60  {
61  return true;
62  }

◆ isNotable()

ilPrivacySecurityConfigStoredObjective::isNotable ( )

Definition at line 33 of file class.ilPrivacySecurityConfigStoredObjective.php.

33  : bool
34  {
35  return true;
36  }

Field Documentation

◆ $config

ilPrivacySecurityConfigStoredObjective::$config
protected

Definition at line 16 of file class.ilPrivacySecurityConfigStoredObjective.php.

Referenced by __construct().


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