Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
audio.php
1
<?php
2
3
namespace
Bitrix\Main\UI\Viewer\Renderer
;
4
5
use
Bitrix\Main\Loader
;
6
7
class
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/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
}
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Main\Loader\includeModule
static includeModule($moduleName)
Definition
loader.php:69
Bitrix\Main\UI\Viewer\Renderer\Audio
Definition
audio.php:8
Bitrix\Main\UI\Viewer\Renderer\Audio\getAllowedContentTypes
static getAllowedContentTypes()
Definition
audio.php:16
Bitrix\Main\UI\Viewer\Renderer\Audio\JS_TYPE_AUDIO
const JS_TYPE_AUDIO
Definition
audio.php:9
Bitrix\Main\UI\Viewer\Renderer\Audio\getData
getData()
Definition
audio.php:31
Bitrix\Main\UI\Viewer\Renderer\Audio\getJsType
static getJsType()
Definition
audio.php:11
Bitrix\Main\UI\Viewer\Renderer\Audio\render
render()
Definition
audio.php:24
Bitrix\Main\UI\Viewer\Renderer\Renderer
Definition
renderer.php:9
Bitrix\Main\UI\Viewer\Renderer\Renderer\$sourceUri
$sourceUri
Definition
renderer.php:14
Bitrix\Main\UI\Viewer\Renderer
Definition
audio.php:3
modules
main
lib
ui
viewer
renderer
audio.php
Создано системой
1.10.0