1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ReminderError.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Link\Reminder;
4
5use Bitrix\Im\V2\Error;
6use Bitrix\Main\Localization\Loc;
7
8class 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}
Определения error.php:15
$code
Определения error.php:17