\Anax\HTMLFormCFormExample

Anax base class for wrapping sessions.

Summary

Methods
Properties
Constants
redirectTo()
__construct()
check()
callbackSubmit()
callbackSubmitFail()
callbackSuccess()
callbackFail()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

redirectTo()

redirectTo(string  $route = null) : void

Redirect to current or another route.

Parameters

string $route

the route to redirect to, null to redirect to current route, "" to redirect to baseurl.

__construct()

__construct() 

Constructor

check()

check(callable  $callIfSuccess = null, callable  $callIfFail = null) 

Customise the check() method.

Parameters

callable $callIfSuccess

handler to call if function returns true.

callable $callIfFail

handler to call if function returns true.

callbackSubmit()

callbackSubmit() 

Callback for submit-button.

callbackSubmitFail()

callbackSubmitFail() 

Callback for submit-button.

callbackSuccess()

callbackSuccess() 

Callback What to do if the form was submitted?

callbackFail()

callbackFail() 

Callback What to do when form could not be processed?