ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilCertificatSetupAgent.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;
26 
28 {
30 
31  public function hasConfig(): bool
32  {
33  return false;
34  }
35 
37  {
38  throw new LogicException('Agent has no config.');
39  }
40 
41  public function getInstallObjective(Setup\Config $config = null): Setup\Objective
42  {
43  return new Setup\Objective\NullObjective();
44  }
45 
46  public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
47  {
48  return new ObjectiveCollection(
49  'Database is updated for component/ILIAS/Certificate',
50  true,
54  );
55  }
56 
57  public function getBuildObjective(): Setup\Objective
58  {
59  return new Setup\Objective\NullObjective();
60  }
61 
62  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
63  {
64  return new ObjectiveCollection(
65  'Database is updated for component/ILIAS/Certificate',
66  true,
70  );
71  }
72 
73  public function getMigrations(): array
74  {
75  return [
78  ];
79  }
80 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getUpdateObjective(Setup\Config $config=null)
hasConfig()
Does this agent require a configuration?
getMigrations()
Get a named map of migrations available for this Agent.
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
getInstallObjective(Setup\Config $config=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:26
getStatusObjective(Setup\Metrics\Storage $storage)