ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 @inheritDoc More...
 

Protected Attributes

 $plugin_name
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilPluginDefaultAgent::__construct ( string  $plugin_name)

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

18 {
19 $this->plugin_name = $plugin_name;
20 }

References $plugin_name.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilPluginDefaultAgent::getArrayToConfigTransformation ( )

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

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

◆ getBuildArtifactObjective()

ilPluginDefaultAgent::getBuildArtifactObjective ( )

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

69 : Setup\Objective
70 {
71 return new Setup\Objective\NullObjective();
72 }

◆ getInstallObjective()

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

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

41 : Setup\Objective
42 {
43 return new Setup\ObjectiveCollection(
44 'Complete objectives from Services/Component',
45 false,
46 new ilComponentInstallPluginObjective($this->plugin_name),
47 new ilComponentUpdatePluginObjective($this->plugin_name),
48 new ilComponentActivatePluginsObjective($this->plugin_name)
49 );
50 }

◆ getMigrations()

ilPluginDefaultAgent::getMigrations ( )

@inheritDoc

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

85 : array
86 {
87 return [];
88 }

◆ getStatusObjective()

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

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

77 : Setup\Objective
78 {
79 return new Setup\Objective\NullObjective();
80 }

◆ getUpdateObjective()

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

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

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

◆ hasConfig()

ilPluginDefaultAgent::hasConfig ( )

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

25 : bool
26 {
27 return false;
28 }

Field Documentation

◆ $plugin_name

ilPluginDefaultAgent::$plugin_name
protected

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

Referenced by __construct().


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