Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
MessengerError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Service
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
MessengerError
extends
Error
9
{
10
public
const
PULL_NOT_ENABLED
=
'PULL_NOT_ENABLED'
;
11
public
const
MESSENGER_NOT_ENABLED
=
'MESSENGER_NOT_ENABLED'
;
12
13
protected
function
loadErrorMessage
(
$code
, $replacements): string
14
{
15
return
Loc::getMessage
(
"ERROR_MESSENGER_{$code}"
, $replacements) ?:
''
;
16
}
17
18
protected
function
loadErrorDescription
(
$code
, $replacements): string
19
{
20
return
Loc::getMessage
(
"ERROR_MESSENGER_{$code}_DESC"
, $replacements) ?:
''
;
21
}
22
}
Bitrix\Im\V2\Error
Definition
Error.php:8
Bitrix\Im\V2\Service\MessengerError
Definition
MessengerError.php:9
Bitrix\Im\V2\Service\MessengerError\MESSENGER_NOT_ENABLED
const MESSENGER_NOT_ENABLED
Definition
MessengerError.php:11
Bitrix\Im\V2\Service\MessengerError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
MessengerError.php:13
Bitrix\Im\V2\Service\MessengerError\PULL_NOT_ENABLED
const PULL_NOT_ENABLED
Definition
MessengerError.php:10
Bitrix\Im\V2\Service\MessengerError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
MessengerError.php:18
Bitrix\Main\Error\$code
$code
Definition
error.php:16
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Im\V2\Service
Definition
Context.php:3
modules
im
lib
V2
Service
MessengerError.php
Создано системой
1.10.0