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

Public Member Functions

 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...
 

Detailed Description

Definition at line 24 of file ilNotificationUpdateAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilNotificationUpdateAgent::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 33 of file ilNotificationUpdateAgent.php.

33  : Refinery\Transformation
34  {
35  throw new LogicException('Agent has no config.');
36  }

◆ getBuildObjective()

ilNotificationUpdateAgent::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 58 of file ilNotificationUpdateAgent.php.

58  : Setup\Objective
59  {
60  return new Setup\Objective\NullObjective();
61  }

◆ getInstallObjective()

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

Definition at line 38 of file ilNotificationUpdateAgent.php.

38  : Setup\Objective
39  {
40  return new Setup\Objective\NullObjective();
41  }

◆ getMigrations()

ilNotificationUpdateAgent::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 68 of file ilNotificationUpdateAgent.php.

68  : array
69  {
70  return [];
71  }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

Definition at line 43 of file ilNotificationUpdateAgent.php.

43  : Setup\Objective
44  {
45  return new Setup\ObjectiveCollection(
46  'Notification Objectives',
47  true,
49  'nota',
50  'Notification Service Administration Object'
51  ),
54  )
55  );
56  }

◆ hasConfig()

ilNotificationUpdateAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 28 of file ilNotificationUpdateAgent.php.

28  : bool
29  {
30  return false;
31  }

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