ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMediaObjectMetricsCollectedObjective.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Setup;
20
25{
26 protected function getTentativePreconditions(Setup\Environment $environment): array
27 {
28 return [
30 ];
31 }
32
33 protected function collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage): void
34 {
35 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
36 if (!$ini) {
37 return;
38 }
39
40 $storage->storeConfigText(
41 "path_to_ffmpeg",
42 $ini->readVariable("tools", "ffmpeg"),
43 "The path to the binary of ffmpeg to convert videos."
44 );
45 }
46}
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
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...
$ini
Definition: raiseError.php:20