RecordCreationEvent implements StoppableEventInterface
FinalYes
Event which allows to manipulate the properties to be used for a new Record.
With this event, it's even possible to create a new Record manually.
Table of Contents
Interfaces
- StoppableEventInterface
Methods
- __construct() : mixed
- getContext() : Context
- getProperties() : array<string|int, mixed>
- getProperty() : mixed
- getRawRecord() : RawRecord
- getRecord() : RecordInterface|null
- getSystemProperties() : SystemProperties
- hasProperty() : bool
- isPropagationStopped() : bool
- setProperties() : void
- setProperty() : void
- setRecord() : void
- unsetProperty() : bool
Methods
__construct()
public
__construct(array<string|int, mixed> $properties, RawRecord $rawRecord, SystemProperties $systemProperties, Context $context[, RecordInterface|null $record = null ]) : mixed
Parameters
- $properties : array<string|int, mixed>
- $rawRecord : RawRecord
- $systemProperties : SystemProperties
- $context : Context
- $record : RecordInterface|null = null
getContext()
public
getContext() : Context
Return values
ContextgetProperties()
public
getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>getProperty()
public
getProperty(string $name) : mixed
Parameters
- $name : string
getRawRecord()
public
getRawRecord() : RawRecord
Return values
RawRecordgetRecord()
public
getRecord() : RecordInterface|null
Return values
RecordInterface|nullgetSystemProperties()
public
getSystemProperties() : SystemProperties
Return values
SystemPropertieshasProperty()
public
hasProperty(string $name) : bool
Parameters
- $name : string
Return values
boolisPropagationStopped()
public
isPropagationStopped() : bool
Return values
boolsetProperties()
public
setProperties(array<string|int, mixed> $properties) : void
Parameters
- $properties : array<string|int, mixed>
setProperty()
public
setProperty(string $name, mixed $propertyValue) : void
Parameters
- $name : string
- $propertyValue : mixed
setRecord()
public
setRecord(RecordInterface $record) : void
Parameters
- $record : RecordInterface
unsetProperty()
public
unsetProperty(string $name) : bool
Parameters
- $name : string