ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMediaObjectSetupAgent Class Reference

Richard Klees richa.nosp@m.rd.k.nosp@m.lees@.nosp@m.conc.nosp@m.epts-.nosp@m.and-.nosp@m.train.nosp@m.ing..nosp@m.de More...

+ Inheritance diagram for ilMediaObjectSetupAgent:
+ Collaboration diagram for ilMediaObjectSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getBuildObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 

Protected Attributes

Refinery Factory $refinery
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMediaObjectSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

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 }

References $data, and ILIAS\Repository\refinery().

+ Here is the call graph for this function:

◆ getBuildObjective()

ilMediaObjectSetupAgent::getBuildObjective ( )

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

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

◆ getMigrations()

ilMediaObjectSetupAgent::getMigrations ( )

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

91 : array
92 {
93 return [
94 new ilMobMigration()
95 ];
96 }

◆ getStatusObjective()

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

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

81 : Setup\Objective
82 {
83 return new Setup\ObjectiveCollection(
84 'Component MediaObjects',
85 true,
87 new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new \ILIAS\MediaObjects\Setup\ilMediaObjectsDBUpdateSteps())
88 );
89 }
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

◆ hasConfig()

ilMediaObjectSetupAgent::hasConfig ( )

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

37 : bool
38 {
39 return true;
40 }

Field Documentation

◆ $refinery

Refinery Factory ilMediaObjectSetupAgent::$refinery
protected

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

Referenced by __construct().


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