CoolCMS API

FormTrait

Forms of {@see \App\UI\Front\System\Components\AccountDeletionComponent\AccountDeletion}: the request (signed in), the cancel (e-mailed token or the sign-in ticket from the session) and the confirmation of an account without a password. All POST with CSRF protection.

Table of Contents

Methods

onCancelSuccess()  : void
onConfirmSuccess()  : void
onRequestSuccess()  : void
createComponentCancelForm()  : Form
createComponentConfirmForm()  : Form
createComponentRequestForm()  : Form
buildForm()  : Form
readFormKey()  : string
readScheduledAt()  : DateTimeImmutable|null
resolveRequestError()  : string

Methods

onCancelSuccess()

public onCancelSuccess(Form $form) : void
Parameters
$form : Form

onConfirmSuccess()

public onConfirmSuccess(Form $form) : void
Parameters
$form : Form

onRequestSuccess()

public onRequestSuccess(Form $form) : void
Parameters
$form : Form

createComponentCancelForm()

protected createComponentCancelForm() : Form
Return values
Form

createComponentConfirmForm()

protected createComponentConfirmForm() : Form
Return values
Form

createComponentRequestForm()

protected createComponentRequestForm() : Form
Return values
Form

readFormKey()

private static readFormKey(Form $form) : string
Parameters
$form : Form
Return values
string

readScheduledAt()

private readScheduledAt(Result $result) : DateTimeImmutable|null
Parameters
$result : Result
Return values
DateTimeImmutable|null

resolveRequestError()

private resolveRequestError(Result $result) : string
Parameters
$result : Result
Return values
string
On this page

Search results