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

Public Member Functions

 __construct (protected 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 (?Config $config=null)
 
 getUpdateObjective (?Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 
- 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

Author
Thibeau Fuhrer thibe.nosp@m.au@s.nosp@m.r.sol.nosp@m.utio.nosp@m.ns AutoloadingIssuesInspection

Definition at line 36 of file class.ilFileObjectAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilFileObjectAgent::__construct ( protected Factory  $refinery)

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

39  {
40  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilFileObjectAgent::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 47 of file class.ilFileObjectAgent.php.

48  {
49  throw new \LogicException("Agent has no config.");
50  }
A transformation is a function from one datatype to another.

◆ getBuildObjective()

ilFileObjectAgent::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 73 of file class.ilFileObjectAgent.php.

73  : Objective
74  {
75  return new NullObjective();
76  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
A non-objective, nothing to do to achieve it...

◆ getInstallObjective()

ilFileObjectAgent::getInstallObjective ( ?Config  $config = null)

Definition at line 52 of file class.ilFileObjectAgent.php.

52  : Objective
53  {
54  return new ilObjFileDefaultIconsObjective(true, true);
55  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getMigrations()

ilFileObjectAgent::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 88 of file class.ilFileObjectAgent.php.

88  : array
89  {
90  return [
91 
92  ];
93  }

◆ getNamedObjectives()

ilFileObjectAgent::getNamedObjectives ( ?Config  $config = null)

Definition at line 95 of file class.ilFileObjectAgent.php.

95  : array
96  {
97  return [
98  'resetDefaultIcons' => new ObjectiveConstructor(
99  'resets the default suffix specific file icons.',
100  fn(): Objective => new ilObjFileDefaultIconsObjective(true, false)
101  ),
102  ];
103  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getStatusObjective()

ilFileObjectAgent::getStatusObjective ( Storage  $storage)

Definition at line 78 of file class.ilFileObjectAgent.php.

78  : Objective
79  {
80  return new ObjectiveCollection(
81  'Component File',
82  true,
85  );
86  }
A objective collection is a objective that is achieved once all subobjectives are achieved...
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getUpdateObjective()

ilFileObjectAgent::getUpdateObjective ( ?Config  $config = null)

◆ hasConfig()

ilFileObjectAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

42  : bool
43  {
44  return false;
45  }

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