ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilFileObjectAgent Class Reference
+ Inheritance diagram for ilFileObjectAgent:
+ Collaboration diagram for ilFileObjectAgent:

Public Member Functions

 __construct (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 (Setup\Metrics\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...
 

Protected Attributes

Factory $refinery
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilFileObjectAgent::__construct ( Factory  $refinery)

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

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

+ Here is the call graph for this function:

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

46  : Refinery\Transformation
47  {
48  throw new \LogicException("Agent has no config.");
49  }

◆ 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 72 of file class.ilFileObjectAgent.php.

72  : Setup\Objective
73  {
74  return new Setup\Objective\NullObjective();
75  }

◆ getInstallObjective()

ilFileObjectAgent::getInstallObjective ( Config  $config = null)

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

51  : Setup\Objective
52  {
53  return new \ILIAS\File\Icon\ilObjFileDefaultIconsObjective(true, true);
54  }

◆ 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 87 of file class.ilFileObjectAgent.php.

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

◆ getNamedObjectives()

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

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

94  : array
95  {
96  return [
97  'resetDefaultIcons' => new ObjectiveConstructor(
98  'resets the default suffix specific file icons.',
99  function (): \ILIAS\Setup\Objective {
100  return new ilObjFileDefaultIconsObjective(true, false);
101  }
102  ),
103  ];
104  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
Interface Observer Contains several chained tasks and infos about them.

◆ getStatusObjective()

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

◆ getUpdateObjective()

ilFileObjectAgent::getUpdateObjective ( Config  $config = null)

◆ hasConfig()

ilFileObjectAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

41  : bool
42  {
43  return false;
44  }

Field Documentation

◆ $refinery

Factory ilFileObjectAgent::$refinery
protected

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

Referenced by __construct().


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