ILIAS  release_8 Revision v8.23
ILIAS\MediaCast\MediaCastManager Class Reference
+ Collaboration diagram for ILIAS\MediaCast\MediaCastManager:

Public Member Functions

 __construct ()
 
 getSuffixesForViewMode (string $view_mode)
 

Protected Attributes

ILIAS MediaObjects MediaType MediaTypeManager $media_types
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 27 of file class.MediaCastManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MediaCast\MediaCastManager::__construct ( )

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

References $DIC.

32  {
33  global $DIC;
34 
35  $this->media_types = $DIC->mediaObjects()
36  ->internal()
37  ->domain()
38  ->mediaType();
39  }
global $DIC
Definition: feed.php:28

Member Function Documentation

◆ 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  }

Field Documentation

◆ $media_types

ILIAS MediaObjects MediaType MediaTypeManager ILIAS\MediaCast\MediaCastManager::$media_types
protected

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


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