Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
audio.php
1<?php
2
4
6
7class Audio extends Renderer
8{
9 const JS_TYPE_AUDIO = 'audio';
10
11 public static function getJsType()
12 {
14 }
15
16 public static function getAllowedContentTypes()
17 {
18 return [
19 'audio/mp3',
20 'audio/mpeg'
21 ];
22 }
23
24 public function render()
25 {
26 Loader::includeModule('fileman');
27
28 return \CJSCore::getHTML(['player']);
29 }
30
31 public function getData()
32 {
33 return [
34 'src' => $this->sourceUri,
35 ];
36 }
37}
static includeModule($moduleName)
Definition loader.php:69