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