validateService __construct(
mixed
&$xmlArr
)
|
|
boolean between(
integer
$value, integer
$min, mixed
$max, [mixed
$inclusive = true], boolean
$inclusive
)
|
|
Built-in Zend between check. Returns true if and only if $value is between the minimum and maximum boundary values.
Parameters:
|
integer |
$value: |
|
|
integer |
$min: |
|
|
mixed |
$max: |
|
|
boolean |
$inclusive
: |
|
API Tags:
| Return: | Valid? |
| Access: | public |
boolean betweenLength(
string
$value, integer
$min, integer
$max
)
|
|
Function to check if a value is between a $min and $max length
Parameters:
|
string |
$value: |
|
|
integer |
$max: |
|
|
integer |
$min: |
|
API Tags:
| Return: | Valid? |
| Access: | public |
boolean credit(
string
$credit
)
|
|
Credit Card check for US format VISA/AMEX/DISC/MC
Parameters:
API Tags:
| Return: | Valid? |
| Access: | public |
boolean date(
string
$date
)
|
|
Built-in Zend date check using YYYY-MM-DD
Parameters:
|
string |
$date: |
in date format $date |
API Tags:
| Return: | Valid? |
| Access: | public |
boolean email(
string
$email
)
|
|
Built-in Zend email check
Parameters:
API Tags:
| Return: | Valid? |
| Access: | public |
void GetErrorMessage(
[mixed
$validator = null], [mixed
$fieldName = null]
)
|
|
API Tags:
boolean greaterThan(
integer
$value, integer
$min
)
|
|
Built-in Zend greater than check. Returns true if and only if $value is greater than the minimum boundary.
Parameters:
|
integer |
$value: |
|
|
integer |
$min: |
|
API Tags:
| Return: | Valid? |
| Access: | public |
boolean lessThan(
integer
$value, integer
$max
)
|
|
Built-in Zend less than check. Returns true if and only if $value is less than the minimum boundary.
Parameters:
|
integer |
$value: |
|
|
integer |
$max: |
|
API Tags:
| Return: | Valid? |
| Access: | public |
boolean longerThan(
string
$value, integer
$min
)
|
|
Function to check if a value is longer than the $min length
Parameters:
|
string |
$value: |
|
|
integer |
$min: |
|
API Tags:
| Return: | Valid? |
| Access: | public |
boolean phone(
string
$phone
)
|
|
Phone check for US format ###-###-#### or (###)###-####
Parameters:
API Tags:
| Return: | Valid? |
| Access: | public |
void ReadMetadata(
mixed
&$xmlArr
)
|
|
API Tags:
boolean shorterThan(
string
$value, integer
$max
)
|
|
Function to check if a value is shorter than the $max length
Parameters:
|
string |
$value: |
|
|
integer |
$max: |
|
API Tags:
| Return: | Valid? |
| Access: | public |
boolean social(
string
$social
)
|
|
Social Security check for US format ###-###-#### or (###)###-####
Parameters:
API Tags:
| Return: | Valid? |
| Access: | public |
boolean street(
string
$street
)
|
|
Street Address check for US format #### Memory Lane
Parameters:
API Tags:
| Return: | Valid? |
| Access: | public |
boolean strongPassword(
mixed
$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
Parameters:
API Tags:
| Return: | Valid? |
| Access: | public |
boolean zip(
string
$zip
)
|
|
US Zip check in ##### or #####-####
Parameters:
API Tags:
| Return: | Valid? |
| Access: | public |