Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
ParamError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Message\Param
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
ParamError
extends
Error
9
{
10
public
const
ATTACH_ERROR
=
'PARAM_ATTACH_ERROR'
;
11
public
const
MENU_ERROR
=
'PARAM_MENU_ERROR'
;
12
public
const
KEYBOARD_ERROR
=
'PARAM_KEYBOARD_ERROR'
;
13
14
protected
function
loadErrorMessage
(
$code
, $replacements): string
15
{
16
return
Loc::getMessage
(
"ERROR_PARAM_{$code}"
, $replacements) ?:
''
;
17
}
18
19
protected
function
loadErrorDescription
(
$code
, $replacements): string
20
{
21
return
Loc::getMessage
(
"ERROR_PARAM_{$code}_DESC"
, $replacements) ?:
''
;
22
}
23
}
Bitrix\Im\V2\Error
Definition
Error.php:8
Bitrix\Im\V2\Message\Param\ParamError
Definition
ParamError.php:9
Bitrix\Im\V2\Message\Param\ParamError\ATTACH_ERROR
const ATTACH_ERROR
Definition
ParamError.php:10
Bitrix\Im\V2\Message\Param\ParamError\KEYBOARD_ERROR
const KEYBOARD_ERROR
Definition
ParamError.php:12
Bitrix\Im\V2\Message\Param\ParamError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
ParamError.php:14
Bitrix\Im\V2\Message\Param\ParamError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
ParamError.php:19
Bitrix\Im\V2\Message\Param\ParamError\MENU_ERROR
const MENU_ERROR
Definition
ParamError.php:11
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\Message\Param
Definition
Attach.php:3
modules
im
lib
V2
Message
Param
ParamError.php
Создано системой
1.10.0