ILIAS  release_7 Revision v7.30-3-g800a261c036
ilMediaObjectSetupAgent Class Reference
+ Inheritance diagram for ilMediaObjectSetupAgent:
+ Collaboration diagram for ilMediaObjectSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 

Protected Attributes

 $refinery
 

Detailed Description

Definition at line 10 of file class.ilMediaObjectSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilMediaObjectSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 19 of file class.ilMediaObjectSetupAgent.php.

References $refinery.

21  {
22  $this->refinery = $refinery;
23  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilMediaObjectSetupAgent::getArrayToConfigTransformation ( )

Definition at line 36 of file class.ilMediaObjectSetupAgent.php.

References $data.

36  : Refinery\Transformation
37  {
38  return $this->refinery->custom()->transformation(function ($data) {
39  return new \ilMediaObjectSetupConfig(
40  $data["path_to_ffmpeg"] ?? null
41  );
42  });
43  }
$data
Definition: storeScorm.php:23

◆ getBuildArtifactObjective()

ilMediaObjectSetupAgent::getBuildArtifactObjective ( )

Definition at line 77 of file class.ilMediaObjectSetupAgent.php.

77  : Setup\Objective
78  {
79  return new Setup\Objective\NullObjective();
80  }

◆ getInstallObjective()

ilMediaObjectSetupAgent::getInstallObjective ( Setup\Config  $config = null)

Definition at line 48 of file class.ilMediaObjectSetupAgent.php.

References $config, and ilFileSystemComponentDataDirectoryCreatedObjective\WEBDIR.

48  : Setup\Objective
49  {
51  'mobs',
53  );
54 
55  return new Setup\ObjectiveCollection(
56  "Complete objectives from Services/MediaObject",
57  false,
59  $dir_objective
60  );
61  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
Stores configuration for the service (currently only path to ffmpeg) in the according ini-field...

◆ getMigrations()

ilMediaObjectSetupAgent::getMigrations ( )

Definition at line 93 of file class.ilMediaObjectSetupAgent.php.

93  : array
94  {
95  return [];
96  }

◆ getStatusObjective()

ilMediaObjectSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 85 of file class.ilMediaObjectSetupAgent.php.

◆ getUpdateObjective()

ilMediaObjectSetupAgent::getUpdateObjective ( Setup\Config  $config = null)

Definition at line 66 of file class.ilMediaObjectSetupAgent.php.

References $config.

66  : Setup\Objective
67  {
68  if ($config !== null) {
70  }
71  return new Setup\Objective\NullObjective();
72  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
Stores configuration for the service (currently only path to ffmpeg) in the according ini-field...

◆ hasConfig()

ilMediaObjectSetupAgent::hasConfig ( )

Definition at line 28 of file class.ilMediaObjectSetupAgent.php.

28  : bool
29  {
30  return true;
31  }

Field Documentation

◆ $refinery

ilMediaObjectSetupAgent::$refinery
protected

Definition at line 17 of file class.ilMediaObjectSetupAgent.php.

Referenced by __construct().


The documentation for this class was generated from the following file: