\Piko\DbRecord\Event\BeforeSaveEvent

Event emitted before db save operation (INSERT / UPDATE)

Properties summary

Name Description
public $insert Flag to see if db save operation is INSERT. If fal…
public $isValid Indicates if the event is valid for further valida…

Inherited Properties

Name Description
public $record  

Methods summary

Name Description
public __construct Constructor

Inherited Methods

Name Description
public __construct Constructor

Properties

public $insert : bool

Flag to see if db save operation is INSERT. If false, indicates that is an UPDATE operation.

public $isValid : bool

Indicates if the event is valid for further validation.


Methods

public __construct(): mixed

public  __construct(bool  $insert, \Piko\DbRecord  $record): mixed

Parameters

$insert : Indicates if the operation is INSERT

$record :

Return:

mixed