ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilOrgUnitSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
23
25{
26 protected \ILIAS\Refinery\Factory $refinery;
27
28 public function __construct(
30 ) {
31 $this->refinery = $refinery;
32 }
33
34 public function hasConfig(): bool
35 {
36 return false;
37 }
38
40 {
41 throw new LogicException("Agent has no config");
42 }
43
44 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
45 {
47 }
48
49 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
50 {
52 }
53
55 {
57 }
58
59 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
60 {
62 }
63
64 public function getMigrations(): array
65 {
66 return [];
67 }
68
69 public function getNamedObjectives(?Setup\Config $config = null): array
70 {
71 return [
72 'removeDeletedUsersFromOrgUnits' => new Setup\ObjectiveConstructor(
73 'clean assignments of deleted users',
75 )
76 ];
77 }
78}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
A non-objective, nothing to do to achieve it...
getStatusObjective(Setup\Metrics\Storage $storage)
getInstallObjective(?Setup\Config $config=null)
getNamedObjectives(?Setup\Config $config=null)
getUpdateObjective(?Setup\Config $config=null)
__construct(Refinery\Factory $refinery)
ILIAS Refinery Factory $refinery
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...