Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventresult.php
1<?php
9namespace Bitrix\Main\ORM;
10
12
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}
addError(EntityError $error)