1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
PlainCall.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Call;
4
5
use Bitrix\Im\Call\Call;
6
use Bitrix\Im\Call\Util;
7
use Bitrix\Main\Config\Option;
8
9
class
PlainCall
extends
Call
10
{
11
protected
$provider
= parent::PROVIDER_PLAIN;
12
13
protected
function
initCall
(): void
14
{
15
if
($this->
getState
() == static::STATE_NEW)
16
{
17
if
(empty($this->uuid))
18
{
19
$this->uuid = Util::generateUUID();
20
$this->
save
();
21
22
(
new
ControllerClient
())->createCall($this);
23
}
24
}
25
}
26
27
public
function
finish
(): void
28
{
29
if
($this->
getState
() != static::STATE_FINISHED)
30
{
31
(
new
ControllerClient
())->finishCall($this);
32
}
33
parent::finish();
34
}
35
36
public
function
getMaxUsers
(): int
37
{
38
return
(
int
)Option::get(
'im'
,
'turn_server_max_users'
);
39
}
40
}
Bitrix\Im\Call\Call
Определения
call.php:24
Bitrix\Im\Call\Call\getState
getState()
Определения
call.php:454
Bitrix\Im\Call\Call\save
save()
Определения
call.php:795
Bitrix\Im\V2\Call\ControllerClient
Определения
ControllerClient.php:11
Bitrix\Im\V2\Call\PlainCall
Определения
PlainCall.php:10
Bitrix\Im\V2\Call\PlainCall\getMaxUsers
getMaxUsers()
Определения
PlainCall.php:36
Bitrix\Im\V2\Call\PlainCall\finish
finish()
Определения
PlainCall.php:27
Bitrix\Im\V2\Call\PlainCall\$provider
$provider
Определения
PlainCall.php:11
Bitrix\Im\V2\Call\PlainCall\initCall
initCall()
Определения
PlainCall.php:13
bitrix
modules
im
lib
V2
Call
PlainCall.php
Создано системой
1.14.0