ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MediaCast\MediaCastManager Class Reference
+ Collaboration diagram for ILIAS\MediaCast\MediaCastManager:

Public Member Functions

 __construct (\ilObjMediaCast $media_cast)
 
 getSuffixesForViewMode (string $view_mode)
 
 commentsActive ()
 

Protected Attributes

ilSetting $settings
 
ilObjMediaCast $media_cast
 
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 ( \ilObjMediaCast  $media_cast)

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

35 {
36 global $DIC;
37
38 $this->media_cast = $media_cast;
39 $this->settings = $DIC->settings();
40 $this->media_types = $DIC->mediaObjects()
41 ->internal()
42 ->domain()
43 ->mediaType();
44 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\MediaCast\MediaCastManager\$media_cast, and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ commentsActive()

ILIAS\MediaCast\MediaCastManager::commentsActive ( )

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

62 : bool
63 {
64 if ($this->settings->get("disable_comments")) {
65 return false;
66 }
67 if (!$this->media_cast->getComments()) {
68 return false;
69 }
70 return true;
71 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ getSuffixesForViewMode()

ILIAS\MediaCast\MediaCastManager::getSuffixesForViewMode ( string  $view_mode)

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

46 : array
47 {
48 switch ($view_mode) {
49 case \ilObjMediaCast::VIEW_VCAST:
50 return iterator_to_array($this->media_types->getAllowedVideoSuffixes());
51 break;
52 case \ilObjMediaCast::VIEW_IMG_GALLERY:
53 return iterator_to_array($this->media_types->getAllowedImageSuffixes());
54 break;
55 case \ilObjMediaCast::VIEW_PODCAST:
56 return iterator_to_array($this->media_types->getAllowedAudioSuffixes());
57 break;
58 }
59 return [];
60 }

Field Documentation

◆ $media_cast

ilObjMediaCast ILIAS\MediaCast\MediaCastManager::$media_cast
protected

◆ $media_types

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

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

◆ $settings

ilSetting ILIAS\MediaCast\MediaCastManager::$settings
protected

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


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