Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
UrlError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Entity\Url
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
UrlError
extends
Error
9
{
10
public
const
NOT_FOUND
=
'URL_NOT_FOUND'
;
11
public
const
DELETE_ERROR
=
'URL_DELETE_ERROR'
;
12
public
const
ACCESS_ERROR
=
'URL_ACCESS_ERROR'
;
13
public
const
SAVE_BEFORE_MIGRATION_ERROR
=
'URL_SAVE_BEFORE_MIGRATION_ERROR'
;
14
15
protected
function
loadErrorMessage
(
$code
, $replacements): string
16
{
17
return
Loc::getMessage
(
"ERROR_URL_{$code}"
, $replacements) ?:
''
;
18
}
19
20
protected
function
loadErrorDescription
(
$code
, $replacements): string
21
{
22
return
Loc::getMessage
(
"ERROR_URL_{$code}_DESC"
, $replacements) ?:
''
;
23
}
24
}
Bitrix\Im\V2\Entity\Url\UrlError
Definition
UrlError.php:9
Bitrix\Im\V2\Entity\Url\UrlError\SAVE_BEFORE_MIGRATION_ERROR
const SAVE_BEFORE_MIGRATION_ERROR
Definition
UrlError.php:13
Bitrix\Im\V2\Entity\Url\UrlError\NOT_FOUND
const NOT_FOUND
Definition
UrlError.php:10
Bitrix\Im\V2\Entity\Url\UrlError\ACCESS_ERROR
const ACCESS_ERROR
Definition
UrlError.php:12
Bitrix\Im\V2\Entity\Url\UrlError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
UrlError.php:15
Bitrix\Im\V2\Entity\Url\UrlError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
UrlError.php:20
Bitrix\Im\V2\Entity\Url\UrlError\DELETE_ERROR
const DELETE_ERROR
Definition
UrlError.php:11
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\Url
Definition
RichData.php:3
modules
im
lib
V2
Entity
Url
UrlError.php
Создано системой
1.10.0