Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ReminderError.php
1<?php
2
4
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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29