ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilUserSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 use ILIAS\Setup;
20 use ILIAS\Refinery;
22 
26 class ilUserSetupAgent implements Setup\Agent
27 {
29 
30  public function hasConfig(): bool
31  {
32  return false;
33  }
34 
36  {
37  throw new \LogicException("Agent has no config.");
38  }
39 
40  public function getInstallObjective(Setup\Config $config = null): Setup\Objective
41  {
43  'usr_images',
45  );
46 
47  return new Setup\ObjectiveCollection(
48  "Complete objectives from Services/User",
49  false,
50  $dir_objective
51  );
52  }
53 
54  public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
55  {
56  return new ObjectiveCollection(
57  'Database is updated for Services/User',
58  false,
61  ),
63  new ilUserDB90()
64  )
65  );
66  }
67 
68  public function getBuildArtifactObjective(): Setup\Objective
69  {
70  return new Setup\Objective\NullObjective();
71  }
72 
73  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
74  {
75  return new ObjectiveCollection(
76  'Services/User',
77  true,
79  $storage,
81  ),
83  $storage,
84  new ilUserDB90()
85  )
86  );
87  }
88 
89  public function getMigrations(): array
90  {
91  return [
94  ];
95  }
96 }
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
getStatusObjective(Setup\Metrics\Storage $storage)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInstallObjective(Setup\Config $config=null)
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:26
getUpdateObjective(Setup\Config $config=null)