◆ __construct()
| ILIAS\MediaCast\MediaCastManager::__construct |
( |
| ) |
|
Definition at line 31 of file class.MediaCastManager.php.
32 {
34
35 $this->media_types =
$DIC->mediaObjects()
36 ->internal()
37 ->domain()
38 ->mediaType();
39 }
References $DIC.
◆ getSuffixesForViewMode()
| ILIAS\MediaCast\MediaCastManager::getSuffixesForViewMode |
( |
string |
$view_mode | ) |
|
Definition at line 41 of file class.MediaCastManager.php.
41 : array
42 {
43 switch ($view_mode) {
44 case \ilObjMediaCast::VIEW_VCAST:
45 return $this->media_types->getVideoSuffixes();
46 break;
47 case \ilObjMediaCast::VIEW_IMG_GALLERY:
48 return $this->media_types->getImageSuffixes();
49 break;
50 case \ilObjMediaCast::VIEW_PODCAST:
51 return $this->media_types->getAudioSuffixes();
52 break;
53 }
54 return [];
55 }
◆ $media_types
| ILIAS MediaObjects MediaType MediaTypeManager ILIAS\MediaCast\MediaCastManager::$media_types |
|
protected |
The documentation for this class was generated from the following file: