EventResult extends EventResult
Table of Contents
Methods
- __construct() : mixed
- addError() : mixed
- getErrors() : array<string|int, EntityError>|array<string|int, FieldError>
- getModified() : mixed
- getUnset() : mixed
- modifyFields() : mixed
- Sets the array of fields to modify data in the Bitrix\Main\ORM\Event
- setErrors() : mixed
- Sets the errors array and changes the event type to ERROR
- unsetField() : mixed
- unsetFields() : mixed
- Sets the array of fields names to unset data in the Bitrix\Main\ORM\Event
Methods
__construct()
public
__construct() : mixed
addError()
public
addError(EntityError $error) : mixed
Parameters
- $error : EntityError
getErrors()
public
getErrors() : array<string|int, EntityError>|array<string|int, FieldError>
Return values
array<string|int, EntityError>|array<string|int, FieldError>getModified()
public
getModified() : mixed
getUnset()
public
getUnset() : mixed
modifyFields()
Sets the array of fields to modify data in the Bitrix\Main\ORM\Event
public
modifyFields(array<string|int, mixed> $fields) : mixed
Parameters
- $fields : array<string|int, mixed>
setErrors()
Sets the errors array and changes the event type to ERROR
public
setErrors(array<string|int, EntityError> $errors) : mixed
Parameters
- $errors : array<string|int, EntityError>
unsetField()
public
unsetField(string $fieldName) : mixed
Parameters
- $fieldName : string
unsetFields()
Sets the array of fields names to unset data in the Bitrix\Main\ORM\Event
public
unsetFields(array<string|int, mixed> $fields) : mixed
Parameters
- $fields : array<string|int, mixed>