Create
extends BaseEvent
in package
This event is triggered when a perso is created, for example after a new perso form posted.
Table of Contents
Properties
- $selector : PersoSelector
- $createdPerso : Perso|null
- $errors : array<string|int, mixed>
Methods
- __construct() : mixed
- getDatabase() : DatabaseEngine
- handle() : void
- isTriggered() : bool
- run() : void
- login() : void
- printAgainCreatePersoForm() : void
Properties
$selector
protected
PersoSelector
$selector
$createdPerso
private
Perso|null
$createdPerso
= null
$errors
private
array<string|int, mixed>
$errors
= []
Methods
__construct()
public
__construct(PersoSelector $selector) : mixed
Parameters
- $selector : PersoSelector
getDatabase()
public
getDatabase() : DatabaseEngine
Return values
DatabaseEnginehandle()
public
handle() : void
isTriggered()
public
isTriggered() : bool
Return values
boolrun()
public
run() : void
login()
private
login() : void
printAgainCreatePersoForm()
private
printAgainCreatePersoForm() : void