Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventresult.php
1
<?php
9
namespace
Bitrix\Main\ORM
;
10
11
use
Bitrix\Main\ORM\Fields\FieldError
;
12
13
class
EventResult
extends
\Bitrix\Main\EventResult
14
{
16
protected
$modified
= array();
17
19
protected
$unset
= array();
20
22
protected
$errors
= array();
23
24
public
function
__construct
()
25
{
26
parent::__construct(parent::SUCCESS,
$parameters
=
null
,
$moduleId
=
null
,
$handler
=
null
);
27
}
28
33
public
function
setErrors
(array $errors)
34
{
35
$this->errors = $errors;
36
$this->type = parent::ERROR;
37
}
38
42
public
function
addError
(
EntityError
$error)
43
{
44
$this->errors[] = $error;
45
$this->type = parent::ERROR;
46
}
47
51
public
function
getErrors
()
52
{
53
return
$this->errors;
54
}
55
60
public
function
modifyFields
(array $fields)
61
{
62
$this->modified = $fields;
63
}
64
65
public
function
getModified
()
66
{
67
return
$this->modified;
68
}
69
74
public
function
unsetFields
(array $fields)
75
{
76
$this->unset = $fields;
77
}
78
82
public
function
unsetField
($fieldName)
83
{
84
$this->unset[] = $fieldName;
85
}
86
87
public
function
getUnset
()
88
{
89
return
$this->unset;
90
}
91
}
Bitrix\Main\EventResult
Definition
eventresult.php:5
Bitrix\Main\EventResult\$handler
$handler
Definition
eventresult.php:11
Bitrix\Main\EventResult\$parameters
$parameters
Definition
eventresult.php:13
Bitrix\Main\EventResult\$moduleId
$moduleId
Definition
eventresult.php:10
Bitrix\Main\ORM\EntityError
Definition
entityerror.php:12
Bitrix\Main\ORM\EventResult\__construct
__construct()
Definition
eventresult.php:24
Bitrix\Main\ORM\EventResult\modifyFields
modifyFields(array $fields)
Definition
eventresult.php:60
Bitrix\Main\ORM\EventResult\unsetFields
unsetFields(array $fields)
Definition
eventresult.php:74
Bitrix\Main\ORM\EventResult\getModified
getModified()
Definition
eventresult.php:65
Bitrix\Main\ORM\EventResult\addError
addError(EntityError $error)
Definition
eventresult.php:42
Bitrix\Main\ORM\EventResult\setErrors
setErrors(array $errors)
Definition
eventresult.php:33
Bitrix\Main\ORM\EventResult\$unset
$unset
Definition
eventresult.php:19
Bitrix\Main\ORM\EventResult\getErrors
getErrors()
Definition
eventresult.php:51
Bitrix\Main\ORM\EventResult\$modified
$modified
Definition
eventresult.php:16
Bitrix\Main\ORM\EventResult\unsetField
unsetField($fieldName)
Definition
eventresult.php:82
Bitrix\Main\ORM\EventResult\getUnset
getUnset()
Definition
eventresult.php:87
Bitrix\Main\ORM\EventResult\$errors
$errors
Definition
eventresult.php:22
Bitrix\Main\ORM\Fields\FieldError
Definition
fielderror.php:14
Bitrix\Main\ORM
modules
main
lib
orm
eventresult.php
Создано системой
1.10.0