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

Public Member Functions

 __construct (protected Refinery\Factory $refinery)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- 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

const DEFAULT_SESSION_EXPIRE_IN_SECONDS = 1_800
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilAuthenticationSetupAgent::__construct ( protected Refinery\Factory  $refinery)

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

31  {
32  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilAuthenticationSetupAgent::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 39 of file class.ilAuthenticationSetupAgent.php.

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

39  : Refinery\Transformation
40  {
41  return $this->refinery->custom()->transformation(function ($data): \ilAuthenticationSetupConfig {
42  return new ilAuthenticationSetupConfig($data["session_max_idle"] ?? self::DEFAULT_SESSION_EXPIRE_IN_SECONDS);
43  });
44  }
+ Here is the call graph for this function:

◆ getBuildObjective()

ilAuthenticationSetupAgent::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 85 of file class.ilAuthenticationSetupAgent.php.

85  : Setup\Objective
86  {
87  return new Setup\Objective\NullObjective();
88  }

◆ getInstallObjective()

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

Definition at line 46 of file class.ilAuthenticationSetupAgent.php.

References null.

46  : Setup\Objective
47  {
48  if ($config !== null) {
49  return new ilSessionMaxIdleIsSetObjective($config);
50  }
51 
53  new ilAuthenticationSetupConfig(self::DEFAULT_SESSION_EXPIRE_IN_SECONDS)
54  );
55  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getMigrations()

ilAuthenticationSetupAgent::getMigrations ( )

Get a named map of migrations available for this Agent.

Should also return Migrations that have run completely.

Returns
array<string,Migration>|Migration[]

Implements ILIAS\Setup\Agent.

Definition at line 106 of file class.ilAuthenticationSetupAgent.php.

106  : array
107  {
108  return [];
109  }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

Definition at line 57 of file class.ilAuthenticationSetupAgent.php.

References null.

57  : Setup\Objective
58  {
59  if ($config !== null) {
60  return new Setup\ObjectiveCollection(
61  'Authentication',
62  true,
65  ),
68  ),
70  );
71  }
72 
73  return new Setup\ObjectiveCollection(
74  'Authentication',
75  true,
78  ),
81  ),
82  );
83  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ hasConfig()

ilAuthenticationSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

34  : bool
35  {
36  return true;
37  }

Field Documentation

◆ DEFAULT_SESSION_EXPIRE_IN_SECONDS

const ilAuthenticationSetupAgent::DEFAULT_SESSION_EXPIRE_IN_SECONDS = 1_800
protected

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


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