1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
revision.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im;
4
5
use Bitrix\Im\V2\Service\Locator;
6
7
class
Revision
8
{
14
const
WEB
= 130;
15
24
const
MOBILE
= 20;
25
30
const
DESKTOP_LEGACY
= 5;
31
35
const
DESKTOP
= 6;
36
40
const
REST
= 32;
41
42
public
static
function
getWeb
()
43
{
44
return
static::WEB;
45
}
46
47
public
static
function
getMobile
()
48
{
49
return
static::MOBILE;
50
}
51
52
public
static
function
getDesktop
()
53
{
54
$application
= Locator::getMessenger()->getApplication();
55
if
(
$application
->isAirDesignEnabled())
56
{
57
return
static::DESKTOP;
58
}
59
60
return
static::DESKTOP_LEGACY;
61
}
62
63
public
static
function
getRest
()
64
{
65
return
static::REST;
66
}
67
68
public
static
function
get
()
69
{
70
return
[
71
'rest'
=> static::getRest(),
72
'web'
=> static::getWeb(),
73
'mobile'
=> static::getMobile(),
74
'desktop'
=> static::getDesktop(),
75
];
76
}
77
}
Bitrix\Im\Revision
Определения
revision.php:8
Bitrix\Im\Revision\getRest
static getRest()
Определения
revision.php:63
Bitrix\Im\Revision\REST
const REST
Определения
revision.php:40
Bitrix\Im\Revision\WEB
const WEB
Определения
revision.php:14
Bitrix\Im\Revision\MOBILE
const MOBILE
Определения
revision.php:24
Bitrix\Im\Revision\DESKTOP
const DESKTOP
Определения
revision.php:35
Bitrix\Im\Revision\getMobile
static getMobile()
Определения
revision.php:47
Bitrix\Im\Revision\DESKTOP_LEGACY
const DESKTOP_LEGACY
Определения
revision.php:30
Bitrix\Im\Revision\getWeb
static getWeb()
Определения
revision.php:42
Bitrix\Im\Revision\getDesktop
static getDesktop()
Определения
revision.php:52
$application
$application
Определения
bitrix.php:23
bitrix
modules
im
lib
revision.php
Создано системой
1.14.0