ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Setup\Agent\NullAgent Class Reference

An agent that just doesn't do a thing. More...

+ Inheritance diagram for ILIAS\Setup\Agent\NullAgent:
+ Collaboration diagram for ILIAS\Setup\Agent\NullAgent:

Public Member Functions

 __construct (Refinery $refinery)
 
 hasConfig ()
 @inheritdocs More...
 
 getArrayToConfigTransformation ()
 @inheritdocs More...
 
 getInstallObjective (?Config $config=null)
 @inheritdocs More...
 
 getUpdateObjective (?Config $config=null)
 @inheritdocs More...
 
 getBuildObjective ()
 @inheritdocs More...
 
 getStatusObjective (Metrics\Storage $storage)
 @inheritdocs More...
 
 getMigrations ()
 @inheritDoc More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 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)
 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...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Protected Attributes

Refinery $refinery
 

Detailed Description

An agent that just doesn't do a thing.

Definition at line 34 of file NullAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Setup\Agent\NullAgent::__construct ( Refinery  $refinery)

Definition at line 38 of file NullAgent.php.

References ILIAS\Setup\Agent\NullAgent\$refinery, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\Setup\Agent\NullAgent::getArrayToConfigTransformation ( )

@inheritdocs

Implements ILIAS\Setup\Agent.

Reimplemented in ilCourseObjectiveSetupAgent, ilCourseSetupAgent, ilStudyProgrammeSetupAgent, ILIAS\Test\Setup\TestSetupAgent, and ILIAS\User\Setup\Agent.

Definition at line 55 of file NullAgent.php.

55 : Transformation
56 {
57 throw new \LogicException(
58 self::class . " has no config."
59 );
60 }

◆ getBuildObjective()

ILIAS\Setup\Agent\NullAgent::getBuildObjective ( )

◆ getInstallObjective()

ILIAS\Setup\Agent\NullAgent::getInstallObjective ( ?Config  $config = null)

@inheritdocs

Implements ILIAS\Setup\Agent.

Reimplemented in ilCourseObjectiveSetupAgent, ilCourseSetupAgent, ilFileServicesSetupAgent, ilStudyProgrammeSetupAgent, and ILIAS\Test\Setup\TestSetupAgent.

Definition at line 65 of file NullAgent.php.

65 : Objective
66 {
67 return new NullObjective();
68 }

◆ getMigrations()

◆ getNamedObjectives()

ILIAS\Setup\Agent\NullAgent::getNamedObjectives ( ?Config  $config = null)

Gets all named objectives The keys of the returned array are the commands.

Only the AgentCollection should return an array where the cmd of the named objective is the array key.

Parameters
Config | null$config
Returns
array<string|int, ObjectiveConstructor>

Implements ILIAS\Setup\Agent.

Definition at line 102 of file NullAgent.php.

102 : array
103 {
104 return [];
105 }

◆ getStatusObjective()

◆ getUpdateObjective()

◆ hasConfig()

ILIAS\Setup\Agent\NullAgent::hasConfig ( )

@inheritdocs

Implements ILIAS\Setup\Agent.

Reimplemented in ilStudyProgrammeSetupAgent, ILIAS\Test\Setup\TestSetupAgent, and ILIAS\User\Setup\Agent.

Definition at line 47 of file NullAgent.php.

47 : bool
48 {
49 return false;
50 }

Field Documentation

◆ $refinery

Refinery ILIAS\Setup\Agent\NullAgent::$refinery
protected

Definition at line 36 of file NullAgent.php.

Referenced by ILIAS\Setup\Agent\NullAgent\__construct().


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