1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
CalendarError.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Entity\Calendar;
4
5
use Bitrix\Im\V2\Error;
6
use Bitrix\Main\Localization\Loc;
7
8
class
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
}
Bitrix\Im\V2\Entity\Calendar\CalendarError
Определения
CalendarError.php:9
Bitrix\Im\V2\Entity\Calendar\CalendarError\ADD_CALENDAR_MESSAGE_FAILED
const ADD_CALENDAR_MESSAGE_FAILED
Определения
CalendarError.php:11
Bitrix\Im\V2\Entity\Calendar\CalendarError\NOT_FOUND
const NOT_FOUND
Определения
CalendarError.php:13
Bitrix\Im\V2\Entity\Calendar\CalendarError\ACCESS_ERROR
const ACCESS_ERROR
Определения
CalendarError.php:12
Bitrix\Im\V2\Entity\Calendar\CalendarError\CALENDAR_NOT_INSTALLED
const CALENDAR_NOT_INSTALLED
Определения
CalendarError.php:10
Bitrix\Im\V2\Entity\Calendar\CalendarError\loadErrorMessage
loadErrorMessage($code, $replacements)
Определения
CalendarError.php:16
Bitrix\Im\V2\Entity\Calendar\CalendarError\loadErrorDescription
loadErrorDescription($code, $replacements)
Определения
CalendarError.php:21
Bitrix\Im\V2\Entity\Calendar\CalendarError\DELETE_ERROR
const DELETE_ERROR
Определения
CalendarError.php:14
Bitrix\Main\Error
Определения
error.php:15
Bitrix\Main\Error\$code
$code
Определения
error.php:17
bitrix
modules
im
lib
V2
Entity
Calendar
CalendarError.php
Создано системой
1.14.0