\Vigas\Application\ViewForms

Class Form.

Manages an authenticated user account

Summary

Methods
Properties
Constants
getLoginForm()
getCreateAccountForm()
getForgotPasswordForm()
getResetPasswordForm()
getFindEmailForm()
getChangePwdForm()
getContactForm()
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

getLoginForm()

getLoginForm(string  $target_url, string  $method, string  $username) 

Builds the login form and displays it

Parameters

string $target_url

Page's URL that handles the form data

string $method

The HTTP method to be used when submitting the form (GET or POST)

string $username

Previously entered username if the form has already been sent

getCreateAccountForm()

getCreateAccountForm(string  $target_url, string  $method, array  $value_array) 

Builds the create account form and displays it

Parameters

string $target_url

Page's URL that handles the form data

string $method

The HTTP method to be used when submitting the form (GET or POST)

array $value_array

Previously entered data if the form has already been sent

getForgotPasswordForm()

getForgotPasswordForm(string  $target_url, string  $method, string  $email) 

Builds the forgot password form and displays it

Parameters

string $target_url

Page's URL that handles the form data

string $method

The HTTP method to be used when submitting the form (GET or POST)

string $email

Previously entered email if the form has already been sent

getResetPasswordForm()

getResetPasswordForm(string  $target_url, string  $method) 

Builds the reset password form and displays it

Parameters

string $target_url

Page's URL that handles the form data

string $method

The HTTP method to be used when submitting the form (GET or POST)

getFindEmailForm()

getFindEmailForm(string  $target_url, string  $method, string  $username) 

Builds the forgot password form and displays it

Parameters

string $target_url

Page's URL that handles the form data

string $method

The HTTP method to be used when submitting the form (GET or POST)

string $username

Previously entered username if the form has already been sent

getChangePwdForm()

getChangePwdForm(string  $target_url, string  $method, \Vigas\Application\Model\User  $user) 

Builds the change password form and displays it

Parameters

string $target_url

Page's URL that handles the form data

string $method

The HTTP method to be used when submitting the form (GET or POST)

\Vigas\Application\Model\User $user

The authenticated user to change the password to

getContactForm()

getContactForm(string  $target_url, string  $method, array  $value_array) 

Builds the contact form and displays it

Parameters

string $target_url

Page's URL that handles the form data

string $method

The HTTP method to be used when submitting the form (GET or POST)

array $value_array

Previously entered data if the form has already been sent