ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPollSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26
28{
29 public function getUpdateObjective(?Config $config = null): Objective
30 {
31 return new ObjectiveCollection(
32 'Poll',
33 false,
35 );
36 }
37
38 public function getMigrations(?Config $config = null): array
39 {
40 return [
41 new \ilPollImagesMigration()
42 ];
43 }
44}
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.
This class attempt to achieve a set of database update steps.
getMigrations(?Config $config=null)
getUpdateObjective(?Config $config=null)
@inheritdocs
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