1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
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 {
13 return self::JS_TYPE_AUDIO;
14 }
15
16 public static function getAllowedContentTypes()
17 {
18 return [
19 'audio/mp3',
20 'audio/ogg',
21 'audio/mpeg'
22 ];
23 }
24
25 public function render()
26 {
27 Loader::includeModule('fileman');
28
29 return \CJSCore::getHTML(['player']);
30 }
31
32 public function getData()
33 {
34 return [
35 'src' => $this->sourceUri,
36 ];
37 }
38}
Определения loader.php:13
static includeModule($moduleName)
Определения loader.php:67
static getAllowedContentTypes()
Определения audio.php:16
const JS_TYPE_AUDIO
Определения audio.php:9
static getJsType()
Определения audio.php:11