Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
registry.php
1
<?php
2
3
namespace
Bitrix\Im\Call
;
4
5
use
Bitrix\Im\Model\CallTable
;
6
use
Bitrix\Im\V2\Call\CallFactory
;
7
8
class
Registry
9
{
11
protected
static
array
$calls
= [];
12
17
public
static
function
getCallWithId
(
int
$id): ?
Call
18
{
19
if
(static::$calls[$id] instanceof
Call
)
20
{
21
return
static::$calls[$id];
22
}
23
24
$row = CallTable::getRowById($id);
25
if
(!$row)
26
{
27
return
null
;
28
}
29
30
static::$calls[$id] = CallFactory::createWithArray($row[
'PROVIDER'
], $row);
31
32
return
static::$calls[$id];
33
}
34
35
public
static
function
getCallWithPublicId
($publicId)
36
{
37
38
}
39
40
public
static
function
getCallWithEntity
($entityType, $entityId)
41
{
42
43
}
44
}
Bitrix\Im\Call\Call
Definition
call.php:22
Bitrix\Im\Call\Registry
Definition
registry.php:9
Bitrix\Im\Call\Registry\getCallWithPublicId
static getCallWithPublicId($publicId)
Definition
registry.php:35
Bitrix\Im\Call\Registry\$calls
static array $calls
Definition
registry.php:11
Bitrix\Im\Call\Registry\getCallWithId
static getCallWithId(int $id)
Definition
registry.php:17
Bitrix\Im\Call\Registry\getCallWithEntity
static getCallWithEntity($entityType, $entityId)
Definition
registry.php:40
Bitrix\Im\Model\CallTable
Definition
call.php:29
Bitrix\Im\V2\Call\CallFactory
Definition
CallFactory.php:8
Bitrix\Im\Call
Definition
auth.php:9
modules
im
lib
call
registry.php
Создано системой
1.10.0