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

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getConfigInput (?Setup\Config $config=null)
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts.
Exceptions
InvalidArgumentExceptionif Config does not match the Agent.
More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Protected Attributes

Refinery Factory $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilPrivacySecuritySetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilPrivacySecuritySetupAgent::getArrayToConfigTransformation ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

Definition at line 58 of file class.ilPrivacySecuritySetupAgent.php.

References $data, null, and ILIAS\Repository\refinery().

58  : Refinery\Transformation
59  {
60  return $this->refinery->custom()->transformation(function ($data) {
62  (bool) ($data["https_enabled"] ?? false),
63  (isset($data["auth_duration"])) ? (int) $data["auth_duration"] : null,
64  (isset($data["account_assistance_duration"])) ? (int) $data["account_assistance_duration"] : null,
65  (isset($data["registration_duration"])) ? (int) $data["registration_duration"] : null,
66  );
67  });
68  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getBuildObjective()

ilPrivacySecuritySetupAgent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

Definition at line 97 of file class.ilPrivacySecuritySetupAgent.php.

97  : Setup\Objective
98  {
99  return new Setup\Objective\NullObjective();
100  }

◆ getConfigInput()

ilPrivacySecuritySetupAgent::getConfigInput ( ?Setup\Config  $config = null)

Definition at line 50 of file class.ilPrivacySecuritySetupAgent.php.

50  : UI\Component\Input\Container\Form\FormInput
51  {
52  throw new LogicException("Not yet implemented.");
53  }

◆ getInstallObjective()

ilPrivacySecuritySetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 73 of file class.ilPrivacySecuritySetupAgent.php.

Referenced by getUpdateObjective().

73  : Setup\Objective
74  {
75  return new Setup\ObjectiveCollection(
76  "Complete objectives from Services/PrivacySecurity",
77  false,
79  );
80  }
+ Here is the caller graph for this function:

◆ getMigrations()

ilPrivacySecuritySetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 113 of file class.ilPrivacySecuritySetupAgent.php.

113  : array
114  {
115  return [];
116  }

◆ getStatusObjective()

ilPrivacySecuritySetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 105 of file class.ilPrivacySecuritySetupAgent.php.

105  : Setup\Objective
106  {
107  return new Setup\Objective\NullObjective();
108  }

◆ getUpdateObjective()

ilPrivacySecuritySetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 85 of file class.ilPrivacySecuritySetupAgent.php.

References getInstallObjective(), and null.

85  : Setup\Objective
86  {
87  if ($config === null || $config instanceof Setup\NullConfig) {
88  return new Setup\Objective\NullObjective();
89  }
90 
91  return $this->getInstallObjective($config);
92  }
getInstallObjective(?Setup\Config $config=null)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
A configuration with no content.
Definition: NullConfig.php:26
+ Here is the call graph for this function:

◆ hasConfig()

ilPrivacySecuritySetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

42  : bool
43  {
44  return true;
45  }

Field Documentation

◆ $refinery

Refinery Factory ilPrivacySecuritySetupAgent::$refinery
protected

Definition at line 32 of file class.ilPrivacySecuritySetupAgent.php.

Referenced by __construct().


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