Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
Definition
CalendarError.php:9
Bitrix\Im\V2\Entity\Calendar\CalendarError\ADD_CALENDAR_MESSAGE_FAILED
const ADD_CALENDAR_MESSAGE_FAILED
Definition
CalendarError.php:11
Bitrix\Im\V2\Entity\Calendar\CalendarError\NOT_FOUND
const NOT_FOUND
Definition
CalendarError.php:13
Bitrix\Im\V2\Entity\Calendar\CalendarError\ACCESS_ERROR
const ACCESS_ERROR
Definition
CalendarError.php:12
Bitrix\Im\V2\Entity\Calendar\CalendarError\CALENDAR_NOT_INSTALLED
const CALENDAR_NOT_INSTALLED
Definition
CalendarError.php:10
Bitrix\Im\V2\Entity\Calendar\CalendarError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
CalendarError.php:16
Bitrix\Im\V2\Entity\Calendar\CalendarError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
CalendarError.php:21
Bitrix\Im\V2\Entity\Calendar\CalendarError\DELETE_ERROR
const DELETE_ERROR
Definition
CalendarError.php:14
Bitrix\Im\V2\Error
Definition
Error.php:8
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\Entity\Calendar
Definition
CalendarCollection.php:3
modules
im
lib
V2
Entity
Calendar
CalendarError.php
Создано системой
1.10.0