Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/im/lib/ |
Upload File : |
<?php namespace Bitrix\Im; use Bitrix\Im\V2\Service\Locator; class Revision { /** * Web Api revision * * @filesource synchronize im/install/js/im/im.js:38 */ const WEB = 130; /** * Mobile Api revision * * @filesource synchronize immobile/install/mobileapp/immobile/components/im/im.recent/component.js:9 * @filesource synchronize immobile/install/mobileapp/immobile/components/im/messenger/component.js:1 * @filesource synchronize immobile/install/components/bitrix/immobile.webcomponent/webcomponents/im.dialog/bundle/component/src/component.js:3 * @filesource synchronize immobile/install/components/bitrix/immobile.webcomponent/webcomponents/im.dialog/bundle/component/src/mobile_dialog.js:22 */ const MOBILE = 19; /** * Desktop Api revision (legacy version) * Will not be updated anymore, instead use {@see self::DESKTOP} */ const DESKTOP_LEGACY = 5; /** * Desktop Api revision */ const DESKTOP = 6; /** * Rest Api revision */ const REST = 32; public static function getWeb() { return static::WEB; } public static function getMobile() { return static::MOBILE; } public static function getDesktop() { $application = Locator::getMessenger()->getApplication(); if ($application->isAirDesignEnabled()) { return static::DESKTOP; } return static::DESKTOP_LEGACY; } public static function getRest() { return static::REST; } public static function get() { return [ 'rest' => static::getRest(), 'web' => static::getWeb(), 'mobile' => static::getMobile(), 'desktop' => static::getDesktop(), ]; } }