ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilPluginDefaultAgent Class Reference
+ Inheritance diagram for ilPluginDefaultAgent:
+ Collaboration diagram for ilPluginDefaultAgent:

Public Member Functions

 __construct (string $plugin_name)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 @inheritDoc More...
 

Protected Attributes

string $plugin_name
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilPluginDefaultAgent::__construct ( string  $plugin_name)

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

31 {
32 $this->plugin_name = $plugin_name;
33 }

References $plugin_name.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilPluginDefaultAgent::getArrayToConfigTransformation ( )

Reimplemented in ilPluginAgentWithDefaultObjectives.

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

47 {
48 throw new LogicException(self::class . " has no Config.");
49 }
A transformation is a function from one datatype to another.

◆ getBuildObjective()

ilPluginDefaultAgent::getBuildObjective ( )

Reimplemented in ilPluginAgentWithDefaultObjectives.

Definition at line 81 of file class.ilPluginDefaultAgent.php.

81 : Setup\Objective
82 {
83 return new Setup\Objective\NullObjective();
84 }

◆ getInstallObjective()

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

Reimplemented in ilPluginAgentWithDefaultObjectives.

Definition at line 54 of file class.ilPluginDefaultAgent.php.

54 : Setup\Objective
55 {
56 return new Setup\ObjectiveCollection(
57 'Complete objectives from Services/Component',
58 false,
59 new ilComponentInstallPluginObjective($this->plugin_name),
60 new ilComponentUpdatePluginObjective($this->plugin_name),
61 new ilComponentActivatePluginsObjective($this->plugin_name)
62 );
63 }

◆ getMigrations()

ilPluginDefaultAgent::getMigrations ( )

@inheritDoc

Reimplemented in ilPluginAgentWithDefaultObjectives.

Definition at line 97 of file class.ilPluginDefaultAgent.php.

97 : array
98 {
99 return [];
100 }

◆ getStatusObjective()

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

Reimplemented in ilPluginAgentWithDefaultObjectives.

Definition at line 89 of file class.ilPluginDefaultAgent.php.

89 : Setup\Objective
90 {
91 return new Setup\Objective\NullObjective();
92 }

◆ getUpdateObjective()

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

Reimplemented in ilPluginAgentWithDefaultObjectives.

Definition at line 68 of file class.ilPluginDefaultAgent.php.

68 : Setup\Objective
69 {
70 return new Setup\ObjectiveCollection(
71 'Complete objectives from Services/Component',
72 false,
73 new ilComponentUpdatePluginObjective($this->plugin_name),
74 new ilPluginLanguageUpdatedObjective($this->plugin_name)
75 );
76 }

◆ hasConfig()

ilPluginDefaultAgent::hasConfig ( )

Reimplemented in ilPluginAgentWithDefaultObjectives.

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

38 : bool
39 {
40 return false;
41 }

Field Documentation

◆ $plugin_name

string ilPluginDefaultAgent::$plugin_name
protected

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