Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
fielderror.php
1
<?php
9
namespace
Bitrix\Main\ORM\Fields
;
10
11
use
Bitrix\Main\ORM\EntityError
;
12
13
class
FieldError
extends
EntityError
14
{
15
const
EMPTY_REQUIRED
=
'BX_EMPTY_REQUIRED'
;
16
const
INVALID_VALUE
=
'BX_INVALID_VALUE'
;
17
19
protected
$field
;
20
21
public
function
__construct
(
Field
$field
,
$message
,
$code
=
'BX_ERROR'
)
22
{
23
parent::__construct(
$message
,
$code
);
24
$this->field =
$field
;
25
}
26
27
public
function
getField
()
28
{
29
return
$this->field
;
30
}
31
}
Bitrix\Main\Error\$code
$code
Definition
error.php:16
Bitrix\Main\Error\$message
$message
Definition
error.php:19
Bitrix\Main\ORM\EntityError
Definition
entityerror.php:12
Bitrix\Main\ORM\Fields\FieldError
Definition
fielderror.php:14
Bitrix\Main\ORM\Fields\FieldError\getField
getField()
Definition
fielderror.php:27
Bitrix\Main\ORM\Fields\FieldError\$field
$field
Definition
fielderror.php:19
Bitrix\Main\ORM\Fields\FieldError\INVALID_VALUE
const INVALID_VALUE
Definition
fielderror.php:16
Bitrix\Main\ORM\Fields\FieldError\__construct
__construct(Field $field, $message, $code='BX_ERROR')
Definition
fielderror.php:21
Bitrix\Main\ORM\Fields\FieldError\EMPTY_REQUIRED
const EMPTY_REQUIRED
Definition
fielderror.php:15
Bitrix\Main\ORM\Fields\Field
Definition
field.php:25
Bitrix\Main\ORM\Fields
Definition
arrayfield.php:9
modules
main
lib
orm
fields
fielderror.php
Создано системой
1.10.0