Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
documents.php
1<?php
2
4
6
8{
9 public const DISABLED = 'N';
10 public const ENABLED = 'Y';
11 public const LIMITED = 'L';
12
23 public static function getDocumentsInCallStatus(): string
24 {
25 if (!Loader::includeModule('disk'))
26 {
27 return static::DISABLED;
28 }
29 if (!class_exists(\Bitrix\Disk\Integration\MessengerCall::class))
30 {
31 return static::DISABLED;
32 }
33 if (!\Bitrix\Disk\Integration\MessengerCall::isAvailableDocuments())
34 {
35 return static::DISABLED;
36 }
37 if (\Bitrix\Disk\Integration\MessengerCall::isEnabledDocuments())
38 {
39 return static::ENABLED;
40 }
41
42 return static::LIMITED . ":" . \Bitrix\Disk\Integration\MessengerCall::getInfoHelperCodeForDocuments();
43 }
44
55 public static function getResumesOfCallStatus(): string
56 {
57 if (!Loader::includeModule('disk'))
58 {
59 return static::DISABLED;
60 }
61 if (!class_exists(\Bitrix\Disk\Integration\MessengerCall::class))
62 {
63 return static::DISABLED;
64 }
65 if (!\Bitrix\Disk\Integration\MessengerCall::isAvailableDocuments())
66 {
67 return static::DISABLED;
68 }
69 if (\Bitrix\Disk\Integration\MessengerCall::isEnabledResumes())
70 {
71 return static::ENABLED;
72 }
73
74 return static::LIMITED . ":" . \Bitrix\Disk\Integration\MessengerCall::getInfoHelperCodeForResume();
75 }
76}