ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.Agent.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\Wiki\Setup;
20
21use ILIAS\Setup;
24
29{
30 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
31 {
33 "Updates of Wiki",
34 false,
35 ...$this->getObjectives()
36 );
37 }
38
39 public function getStatusObjective(Metrics\Storage $storage): Objective
40 {
41 return new \ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new ilWikiDBUpdateSteps());
42 }
43
44 protected function getObjectives(): array
45 {
46 $objectives = [];
47
48 $objectives[] = new \ilAccessCustomRBACOperationAddedObjective(
49 "add_pages",
50 "Create Pages",
51 "object",
52 3070,
53 ["wiki"]
54 );
55
57 "wiki",
58 "edit_content",
59 "add_pages"
60 );
61
62
63 // db update steps
64 $objectives[] = new \ilDatabaseUpdateStepsExecutedObjective(new ilWikiDBUpdateSteps());
65 $objectives[] = new \ilDatabaseUpdateStepsExecutedObjective(new ilWiki8HotfixDBUpdateSteps());
66
67 return $objectives;
68 }
69
70 public function getMigrations(): array
71 {
72 return [new InitLOMForWikiMigration()];
73 }
74}
An agent that just doesn't do a thing.
Definition: NullAgent.php:35
A objective collection is a objective that is achieved once all subobjectives are achieved.
getStatusObjective(Metrics\Storage $storage)
@inheritdocs
Definition: class.Agent.php:39
getUpdateObjective(?Setup\Config $config=null)
Definition: class.Agent.php:30
getMigrations()
@inheritDoc
Definition: class.Agent.php:70
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$objectives