1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
revision.php
См. документацию.
1<?php
2
3namespace Bitrix\Im;
4
5use Bitrix\Im\V2\Service\Locator;
6
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}
Определения revision.php:8
static getRest()
Определения revision.php:63
const REST
Определения revision.php:40
const WEB
Определения revision.php:14
const MOBILE
Определения revision.php:24
const DESKTOP
Определения revision.php:35
static getMobile()
Определения revision.php:47
const DESKTOP_LEGACY
Определения revision.php:30
static getWeb()
Определения revision.php:42
static getDesktop()
Определения revision.php:52
$application
Определения bitrix.php:23