ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilMediaObjectSetupAgent Class Reference
+ Inheritance diagram for ilMediaObjectSetupAgent:
+ Collaboration diagram for ilMediaObjectSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getConfigInput (Setup\Config $config=null)
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 

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 17 of file class.ilMediaObjectSetupAgent.php.

19 {
20 $this->refinery = $refinery;
21 }

References $refinery.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilMediaObjectSetupAgent::getArrayToConfigTransformation ( )

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

42 : Refinery\Transformation
43 {
44 return $this->refinery->custom()->transformation(function ($data) {
45 return new \ilMediaObjectSetupConfig(
46 $data["path_to_ffmpeg"] ?? null
47 );
48 });
49 }
$data
Definition: storeScorm.php:23

References $data.

◆ getBuildArtifactObjective()

ilMediaObjectSetupAgent::getBuildArtifactObjective ( )

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

80 : Setup\Objective
81 {
82 return new Setup\NullObjective();
83 }

◆ getConfigInput()

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

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

34 : UI\Component\Input\Field\Input
35 {
36 throw new \LogicException("Not yet implemented.");
37 }

◆ getInstallObjective()

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

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

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

References $config, and ilFileSystemComponentDataDirectoryCreatedObjective\WEBDIR.

◆ getUpdateObjective()

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

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

72 : Setup\Objective
73 {
74 return new Setup\NullObjective();
75 }

◆ hasConfig()

ilMediaObjectSetupAgent::hasConfig ( )

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

26 : bool
27 {
28 return true;
29 }

Field Documentation

◆ $refinery

ilMediaObjectSetupAgent::$refinery
protected

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

Referenced by __construct().


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