Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
CallFactory.php
1<?php
2
3namespace Bitrix\Im\V2\Call;
4
6
8{
9 public static function createWithEntity($type, $provider, $entityType, $entityId, $initiatorId)
10 {
11 switch ($provider)
12 {
13 case 'Bitrix':
14 return BitrixCall::createWithEntity($type, $provider, $entityType, $entityId, $initiatorId);
15 default:
16 return Call::createWithEntity($type, $provider, $entityType, $entityId, $initiatorId);
17 }
18 }
19
20 public static function createWithArray($provider, array $fields): Call
21 {
22 switch ($provider)
23 {
24 case 'Bitrix':
25 return BitrixCall::createWithArray($fields);
26 default:
27 return Call::createWithArray($fields);
28 }
29 }
30
31 public static function searchActive($type, $provider, $entityType, $entityId, $currentUserId = 0)
32 {
33 switch ($provider)
34 {
35 case 'Bitrix':
36 return BitrixCall::searchActive($type, $provider, $entityType, $entityId, $currentUserId);
37 default:
38 return Call::searchActive($type, $provider, $entityType, $entityId, $currentUserId);
39 }
40 }
41
42 public static function searchActiveByUuid(string $provider, string $uuid)
43 {
44 switch ($provider)
45 {
46 case 'Bitrix':
48 default:
49 return Call::searchActiveByUuid($uuid);
50 }
51 }
52}
static createWithArray(array $fields)
Definition call.php:800
static searchActiveByUuid(string $uuid)
Definition call.php:776
static createWithEntity($type, $provider, $entityType, $entityId, $initiatorId)
Definition call.php:665
static searchActive($type, $provider, $entityType, $entityId, $currentUserId=0)
Definition call.php:736
static searchActiveByUuid(string $provider, string $uuid)
static createWithEntity($type, $provider, $entityType, $entityId, $initiatorId)
static searchActive($type, $provider, $entityType, $entityId, $currentUserId=0)
static createWithArray($provider, array $fields)