Class Validation
Rules used for validation of form fields.
Package: awl\Validation
Copyright: Catalyst IT Ltd
License: GNU GPL v2 or later
Author: Emily Mossman emily@mcmillan.net.nz
Located at Validation.php
Copyright: Catalyst IT Ltd
License: GNU GPL v2 or later
Author: Emily Mossman emily@mcmillan.net.nz
Located at Validation.php
public
|
|
public
|
|
public
string
|
#
RenderJavascript( string $prefix = "", string $prefix,… )
Returns the javascript for form validation using the rules. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
positive_dollars( string $field_string )
Check that the given string is a positive dollar amount. Use not_empty first if string is required. |
public
boolean
|
#
positive_integer( string $field_string )
Check that the given string is a positive integer. Use not_empty first if string is required. |
public
boolean
|
#
valid_email_format( string $field_string )
Check that the given string is a valid email address. Use not_empty first if string is required. |
public
boolean
|
#
valid_date_format( string $field_string )
Check that the given string matches the user's date format. Use not_empty first if string is required. |
public
|
$rules
List of rules for validation |
#
array()
|
public
|
$func_name
The javascript function name to call onsubmit of the form |
#
""
|