Public Member Functions | |
__construct (&$xmlArr) | |
shorterThan ($value, $max) | |
betweenLength ($value, $min, $max) | |
longerThan ($value, $min) | |
lessThan ($value, $max) | |
strongPassword ($value) | |
greaterThan ($value, $min) | |
between ($value, $min, $max, $inclusive=true) | |
email ($email) | |
date ($date) | |
phone ($phone) | |
zip ($zip) | |
social ($social) | |
credit ($credit) | |
street ($street) | |
getErrorMessage ($validator=null, $fieldName=null) | |
Protected Member Functions | |
readMetadata (&$xmlArr) | |
Protected Attributes | |
$m_ErrorMessage = null | |
$m_FieldNameMask = "%%FIELDNAME%%" |
Definition at line 29 of file validateService.php.
__construct | ( | &$ | xmlArr ) |
Initialize reportService with xml array metadata
array | $xmlArr |
Definition at line 40 of file validateService.php.
between | ( | $ | value, |
$ | min, | ||
$ | max, | ||
$ | inclusive = true |
||
) |
Built-in Zend between check. Returns true if and only if $value is between the minimum and maximum boundary values.
integer | $value | |
integer | $min | |
mixed | $max | |
boolean | $inclusive |
Definition at line 231 of file validateService.php.
betweenLength | ( | $ | value, |
$ | min, | ||
$ | max | ||
) |
Function to check if a value is between a $min and $max length
string | $value | |
integer | $max | |
integer | $min |
Definition at line 94 of file validateService.php.
credit | ( | $ | credit ) |
Credit Card check for US format VISA/AMEX/DISC/MC
string | $credit |
Definition at line 355 of file validateService.php.
date | ( | $ | date ) |
Built-in Zend date check using YYYY-MM-DD
string | in date format $date |
Definition at line 279 of file validateService.php.
( | $ | email ) |
Built-in Zend email check
string |
Definition at line 251 of file validateService.php.
getErrorMessage | ( | $ | validator = null , |
$ | fieldName = null |
||
) |
Get error message
string | $validator | |
string | $fieldName |
Definition at line 394 of file validateService.php.
greaterThan | ( | $ | value, |
$ | min | ||
) |
Built-in Zend greater than check. Returns true if and only if $value is greater than the minimum boundary.
integer | $value | |
integer | $min |
Definition at line 208 of file validateService.php.
lessThan | ( | $ | value, |
$ | max | ||
) |
Built-in Zend less than check. Returns true if and only if $value is less than the minimum boundary.
integer | $value | |
integer | $max |
Definition at line 166 of file validateService.php.
longerThan | ( | $ | value, |
$ | min | ||
) |
Function to check if a value is longer than the $min length
string | $value | |
integer | $min |
Definition at line 132 of file validateService.php.
phone | ( | $ | phone ) |
Phone check for US format ###-###-#### or (###)###-####
string | $phone |
Definition at line 298 of file validateService.php.
readMetadata | ( | &$ | xmlArr ) | [protected] |
Read array meta data, and store to meta object
array | $xmlArr |
Definition at line 51 of file validateService.php.
shorterThan | ( | $ | value, |
$ | max | ||
) |
Function to check if a value is shorter than the $max length
string | $value | |
integer | $max |
Definition at line 62 of file validateService.php.
social | ( | $ | social ) |
Social Security check for US format ###-###-#### or (###)###-####
string | $social |
Definition at line 336 of file validateService.php.
street | ( | $ | street ) |
Street Address check for US format #### Memory Lane
string | $street |
Definition at line 374 of file validateService.php.
strongPassword | ( | $ | value ) |
Strong Password checks if the string is "strong", i.e. the password must be at least 8 characters and must contain at least one lower case letter, one upper case letter and one digit
mixed | $value |
Definition at line 186 of file validateService.php.
zip | ( | $ | zip ) |
US Zip check in ##### or #####-####
string | $zip |
Definition at line 317 of file validateService.php.