ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilUICoreSetupAgent Class Reference
+ Inheritance diagram for ilUICoreSetupAgent:
+ Collaboration diagram for ilUICoreSetupAgent:

Public Member Functions

 __construct ()
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 
 getNamedObjective (string $name, Setup\Config $config=null)
 

Protected Attributes

 $ctrl_reader
 

Detailed Description

Definition at line 7 of file class.ilUICoreSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilUICoreSetupAgent::__construct ( )

Definition at line 14 of file class.ilUICoreSetupAgent.php.

15  {
16  $this->ctrl_reader = new \ilCtrlStructureReader();
17  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilUICoreSetupAgent::getArrayToConfigTransformation ( )

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

31  {
32  throw new \LogicException(self::class . " has no Config.");
33  }
A transformation is a function from one datatype to another.

◆ getBuildArtifactObjective()

ilUICoreSetupAgent::getBuildArtifactObjective ( )

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

54  : Setup\Objective
55  {
56  return new Setup\Objective\NullObjective();
57  }

◆ getInstallObjective()

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

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

38  : Setup\Objective
39  {
40  return new \ilCtrlStructureStoredObjective($this->ctrl_reader);
41  }

◆ getMigrations()

ilUICoreSetupAgent::getMigrations ( )

Definition at line 70 of file class.ilUICoreSetupAgent.php.

70  : array
71  {
72  return [];
73  }

◆ getNamedObjective()

ilUICoreSetupAgent::getNamedObjective ( string  $name,
Setup\Config  $config = null 
)

Definition at line 75 of file class.ilUICoreSetupAgent.php.

75  : Setup\Objective
76  {
77  if ($name == "reloadCtrlStructure") {
78  return new ObjectiveCollection(
79  "Reload Control Structure of ILIAS",
80  false,
83  ),
85  );
86  }
87  throw new \InvalidArgumentException(
88  "There is no named objective '$name'"
89  );
90  }
A objective collection is a objective that is achieved once all subobjectives are achieved...
Class ilCtrlStructureReader.
if($format !==null) $name
Definition: metadata.php:230

◆ getStatusObjective()

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

Definition at line 62 of file class.ilUICoreSetupAgent.php.

62  : Setup\Objective
63  {
64  return new Setup\Objective\NullObjective();
65  }

◆ getUpdateObjective()

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

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

46  : Setup\Objective
47  {
48  return new \ilCtrlStructureStoredObjective($this->ctrl_reader, false);
49  }

◆ hasConfig()

ilUICoreSetupAgent::hasConfig ( )

Definition at line 22 of file class.ilUICoreSetupAgent.php.

22  : bool
23  {
24  return false;
25  }

Field Documentation

◆ $ctrl_reader

ilUICoreSetupAgent::$ctrl_reader
protected

Definition at line 12 of file class.ilUICoreSetupAgent.php.


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