Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
ImportError.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Import
;
4
5
use
Bitrix\Im\V2\Error
;
6
use
Bitrix\Main\Localization\Loc
;
7
8
class
ImportError
extends
Error
9
{
10
public
const
ACCESS_ERROR
=
'IMPORT_ACCESS_ERROR'
;
11
public
const
FILE_ACCESS_ERROR
=
'IMPORT_FILE_ACCESS_ERROR'
;
12
public
const
UPDATE_MESSAGE_ERROR
=
'IMPORT_UPDATE_MESSAGE_ERROR'
;
13
public
const
ADD_MESSAGE_ERROR
=
'IMPORT_ADD_MESSAGE_ERROR'
;
14
public
const
DATETIME_FORMAT_ERROR
=
'IMPORT_DATETIME_ERROR'
;
15
public
const
FILE_NOT_FOUND
=
'IMPORT_FILE_NOT_FOUND'
;
16
public
const
DATETIME_FORMAT_ERROR_FIRST
=
'IMPORT_DATETIME_FORMAT_ERROR_FIRST'
;
17
public
const
CHRONOLOGY_ERROR
=
'IMPORT_CHRONOLOGY_ERROR'
;
18
public
const
PRIVATE_CHAT_COUNT_USERS_ERROR
=
'IMPORT_PRIVATE_CHAT_COUNT_USERS_ERROR'
;
19
20
protected
function
loadErrorMessage
(
$code
, $replacements): string
21
{
22
return
Loc::getMessage
(
"ERROR_IMPORT_{$code}"
, $replacements) ?:
''
;
23
}
24
25
protected
function
loadErrorDescription
(
$code
, $replacements): string
26
{
27
return
Loc::getMessage
(
"ERROR_IMPORT_{$code}_DESC"
, $replacements) ?:
''
;
28
}
29
}
Bitrix\Im\V2\Error
Definition
Error.php:8
Bitrix\Im\V2\Import\ImportError
Definition
ImportError.php:9
Bitrix\Im\V2\Import\ImportError\FILE_ACCESS_ERROR
const FILE_ACCESS_ERROR
Definition
ImportError.php:11
Bitrix\Im\V2\Import\ImportError\PRIVATE_CHAT_COUNT_USERS_ERROR
const PRIVATE_CHAT_COUNT_USERS_ERROR
Definition
ImportError.php:18
Bitrix\Im\V2\Import\ImportError\CHRONOLOGY_ERROR
const CHRONOLOGY_ERROR
Definition
ImportError.php:17
Bitrix\Im\V2\Import\ImportError\UPDATE_MESSAGE_ERROR
const UPDATE_MESSAGE_ERROR
Definition
ImportError.php:12
Bitrix\Im\V2\Import\ImportError\ADD_MESSAGE_ERROR
const ADD_MESSAGE_ERROR
Definition
ImportError.php:13
Bitrix\Im\V2\Import\ImportError\DATETIME_FORMAT_ERROR
const DATETIME_FORMAT_ERROR
Definition
ImportError.php:14
Bitrix\Im\V2\Import\ImportError\DATETIME_FORMAT_ERROR_FIRST
const DATETIME_FORMAT_ERROR_FIRST
Definition
ImportError.php:16
Bitrix\Im\V2\Import\ImportError\ACCESS_ERROR
const ACCESS_ERROR
Definition
ImportError.php:10
Bitrix\Im\V2\Import\ImportError\FILE_NOT_FOUND
const FILE_NOT_FOUND
Definition
ImportError.php:15
Bitrix\Im\V2\Import\ImportError\loadErrorMessage
loadErrorMessage($code, $replacements)
Definition
ImportError.php:20
Bitrix\Im\V2\Import\ImportError\loadErrorDescription
loadErrorDescription($code, $replacements)
Definition
ImportError.php:25
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\Import
Definition
ImportError.php:3
modules
im
lib
V2
Import
ImportError.php
Создано системой
1.10.0