BeforeRemoveNonCopyableFieldsEvent

FinalYes

Event is dispatched before non-copyable fields are removed from a record. Listener can modify the list of non-copyable fields (e.g. add custom fields, which should be ignored by DataHandler during copy/localization).

Internal

This event should only be used by experienced developers who understand the implications of DataHandler's field processing. Wrong usage will lead to data inconsistencies. The event is therefore declared as "use at your own risk, may change without notice".

Table of Contents

Methods

__construct()  : mixed
getCallingOperation()  : string
getNonCopyableFields()  : array<string|int, mixed>
getRow()  : array<string|int, mixed>
getTable()  : string
setNonCopyableFields()  : void

Methods

__construct()

public __construct(string $table, array<string|int, mixed> $row, string $callingOperation, array<string|int, mixed> $nonCopyableFields) : mixed
Parameters
$table : string
$row : array<string|int, mixed>
$callingOperation : string
$nonCopyableFields : array<string|int, mixed>

getCallingOperation()

public getCallingOperation() : string
Return values
string

getNonCopyableFields()

public getNonCopyableFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRow()

public getRow() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTable()

public getTable() : string
Return values
string

setNonCopyableFields()

public setNonCopyableFields(array<string|int, mixed> $nonCopyableFields) : void
Parameters
$nonCopyableFields : array<string|int, mixed>

        
On this page

Search results