ILIAS  release_8 Revision v8.24
class.ilMediaObjectSetupAgent.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Setup;
21
26{
27 use Setup\Agent\HasNoNamedObjective;
28
29 protected Refinery\Factory $refinery;
30
31 public function __construct(
32 Refinery\Factory $refinery
33 ) {
34 $this->refinery = $refinery;
35 }
36
37 public function hasConfig(): bool
38 {
39 return true;
40 }
41
43 {
44 return $this->refinery->custom()->transformation(function ($data) {
45 return new \ilMediaObjectSetupConfig(
46 $data["path_to_ffmpeg"] ?? null
47 );
48 });
49 }
50
51 public function getInstallObjective(Setup\Config $config = null): Setup\Objective
52 {
54 'mobs',
56 );
57
59 return new Setup\ObjectiveCollection(
60 "Complete objectives from Services/MediaObject",
61 false,
63 $dir_objective
64 );
65 }
66
67 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
68 {
70 if ($config !== null) {
72 }
73 return new Setup\Objective\NullObjective();
74 }
75
76 public function getBuildArtifactObjective(): Setup\Objective
77 {
79 }
80
81 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
82 {
83 return new ilMediaObjectMetricsCollectedObjective($storage);
84 }
85
86 public function getMigrations(): array
87 {
88 return [];
89 }
90}
Builds data types.
Definition: Factory.php:21
A non-objective, nothing to do to achieve it...
Stores configuration for the service (currently only path to ffmpeg) in the according ini-field.
Richard Klees richard.klees@concepts-and-training.de
__construct(Refinery\Factory $refinery)
getStatusObjective(Setup\Metrics\Storage $storage)
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
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ByTrying.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...