Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
CalendarError.php
1<?php
2
4
7
8class CalendarError extends Error
9{
10 public const CALENDAR_NOT_INSTALLED = 'CALENDAR_NOT_INSTALLED';
11 public const ADD_CALENDAR_MESSAGE_FAILED = 'ADD_CALENDAR_MESSAGE_FAILED';
12 public const ACCESS_ERROR = 'CALENDAR_ACCESS_ERROR';
13 public const NOT_FOUND = 'CALENDAR_NOT_FOUND';
14 public const DELETE_ERROR = 'CALENDAR_DELETE_ERROR';
15
16 protected function loadErrorMessage($code, $replacements): string
17 {
18 return Loc::getMessage("ERROR_CALENDAR_{$code}", $replacements) ?: '';
19 }
20
21 protected function loadErrorDescription($code, $replacements): string
22 {
23 return Loc::getMessage("ERROR_CALENDAR_{$code}_DESC", $replacements) ?: '';
24 }
25}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29