ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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;
24 
26 {
28 
29  public function hasConfig(): bool
30  {
31  return false;
32  }
33 
35  {
36  throw new LogicException('Agent has no config.');
37  }
38 
39  public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
40  {
41  return new Setup\Objective\NullObjective();
42  }
43 
44  public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
45  {
46  return new ObjectiveCollection(
47  'Database is updated for component/ILIAS/Certificate',
48  true,
53  );
54  }
55 
56  public function getBuildObjective(): Setup\Objective
57  {
58  return new Setup\Objective\NullObjective();
59  }
60 
61  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
62  {
63  return new ObjectiveCollection(
64  'Database is updated for component/ILIAS/Certificate',
65  true,
70  );
71  }
72 
73  public function getMigrations(): array
74  {
75  return [];
76  }
77 }
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
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
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Storage is simple key/value store without further schema definition.
Definition: Storage.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getUpdateObjective(?Setup\Config $config=null)
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)
getInstallObjective(?Setup\Config $config=null)