\Vigas\Application\ControllerFormValidator

Class AppController.

Validates that data sent via HTML forms are in the expected format

Summary

Methods
Properties
Constants
checkEmail()
checkAlphanum()
checkLength()
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

checkEmail()

checkEmail(string  $email) : boolean

Checks that the parameter match the email format

Parameters

string $email

Email address to check

Returns

boolean —

Returns true if the parameter match the email format, false otherwise

checkAlphanum()

checkAlphanum(string  $string) : boolean

Checks that the parameter is an alphanumeric string

Parameters

string $string

The string to check

Returns

boolean —

Returns true if the parameter is an alphanumeric string, false otherwise

checkLength()

checkLength(string  $string, integer  $min, integer  $max) : boolean

Checks that the parameter length is between the specified min and max value

Parameters

string $string

The string to check

integer $min

The minimal lenght

integer $max

The maximal lenght

Returns

boolean —

Returns true if the parameter length is between the specified min and max value, false otherwise