ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilForumSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Setup;
22 use ILIAS\Refinery;
23 
25 {
27 
28  public function hasConfig(): bool
29  {
30  return false;
31  }
32 
34  {
35  throw new LogicException("Agent has no config.");
36  }
37 
38  public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
39  {
41  'forum',
43  );
44  }
45 
46  public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
47  {
48  return new Setup\ObjectiveCollection(
49  'Forum',
50  true,
53  ),
56  )
57  );
58  }
59 
60  public function getBuildObjective(): Setup\Objective
61  {
62  return new Setup\Objective\NullObjective();
63  }
64 
65  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
66  {
67  return new Setup\ObjectiveCollection(
68  'Component Forum',
69  true,
72  );
73  }
74 
75  public function getMigrations(): array
76  {
77  return [];
78  }
79 }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getInstallObjective(?Setup\Config $config=null)
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Storage is simple key/value store without further schema definition.
Definition: Storage.php:29
getUpdateObjective(?Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
hasConfig()
Does this agent require a configuration?
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A transformation is a function from one datatype to another.
getMigrations()
Get a named map of migrations available for this Agent.
A configuration for the setup.
Definition: Config.php:26
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.