fusionkit.validation
Component validation (Validation Component)
* - private method
Component validation (Validation Component)
a collection of validation functions
properties: | |
methods: | autoValidate, autoValidateChecker*, email, hasXML, integer, length, negativeInteger, positiveInteger, ssn, url, usDate, usPhone, usPhoneWithAreaCode, usPhoneWithDashes, usPhoneWithOne, usPhoneWithOutAreaCode, usPhoneWithParenthesis, zip |
autoValidate |
---|
struct
autoValidate
(
string
xml_fields=""
)
automatically validates form and url fields based on their name Output: supressed Parameters: xml_fields: string, optional, xml_fields - list of feild names that may contain xml/html |
autoValidateChecker* |
private
struct
autoValidateChecker
(
required
string
field_name,
required
string
value
)
Output: supressed Parameters: field_name: string, required, field_name value: string, required, value |
boolean
email
(
required
string
value
)
Output: supressed Parameters: value: string, required, value |
hasXML |
boolean
hasXML
(
required
string
value
)
returns true if a string contains HTML/XML tags Output: supressed Parameters: value: string, required, value |
integer |
boolean
integer
(
required
string
value
)
Output: supressed Parameters: value: string, required, value |
length |
boolean
length
(
required
string
value,
numeric
minLength="1"
)
returns true if string has length Output: supressed Parameters: value: string, required, value minLength: numeric, optional, minLength |
negativeInteger |
boolean
negativeInteger
(
required
string
value
)
Output: supressed Parameters: value: string, required, value |
positiveInteger |
boolean
positiveInteger
(
required
string
value
)
Output: supressed Parameters: value: string, required, value |
ssn |
boolean
ssn
(
value
)
validates social security number xxxxxxxxx or xxx-xx-xxxx Output: supressed Parameters: value: any, optional, value |
url |
boolean
url
(
value
)
validates a url Output: supressed Parameters: value: any, optional, value |
usDate |
boolean
usDate
(
required
string
value
)
validates a date in format m/d/yy or m/d/yyyy Output: supressed Parameters: value: string, required, value - the date |
usPhone |
boolean
usPhone
(
required
string
value
)
Validates a US phone number xxx-xxxx or (xxx) xxx-xxxx or xxx-xxx-xxxx or 1-xxx-xxx-xxxx Output: supressed Parameters: value: string, required, value - the phone number |
usPhoneWithAreaCode |
boolean
usPhoneWithAreaCode
(
required
string
value
)
validates a US phone number is (xxx) xxx-xxxx or xxx-xxx-xxxx or 1-xxx-xxx-xxxx Output: supressed Parameters: value: string, required, value - the phone number |
usPhoneWithDashes |
boolean
usPhoneWithDashes
(
required
string
value
)
validates a US phone number is xxx-xxx-xxxx Output: supressed Parameters: value: string, required, value - the phone number |
usPhoneWithOne |
boolean
usPhoneWithOne
(
required
string
value
)
validates a US phone number is 1-xxx-xxx-xxxx Output: supressed Parameters: value: string, required, value - the phone number |
usPhoneWithOutAreaCode |
boolean
usPhoneWithOutAreaCode
(
required
string
value
)
validates a phone number in format xxx-xxxx Output: supressed Parameters: value: string, required, value - the phone number |
usPhoneWithParenthesis |
boolean
usPhoneWithParenthesis
(
required
string
value
)
validates a US phone number is (xxx) xxx-xxxx Output: supressed Parameters: value: string, required, value - the phone number |
zip |
boolean
zip
(
required
string
value
)
validates us zip code nnnnn or nnnnn-nnnn Output: supressed Parameters: value: string, required, value - the zip code |
Copyright © 2006 Foundeo Inc. - All Rights Reserved. ColdFusion is a trademark of Adobe Systems Incorporated.