Cts_Validate

Summary
Cts_Validate
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
Static Methods
checkLengthValidates the length of a string.
checkEmailValidates an email address string.

Author

Jaybill McCarthy

Static Methods

checkLength

static function checkLength($var,
$min,
$max)

Validates the length of a string.  Uses Zend_Validate_StringLength.

Arguments

varThe string to validate.
minThe minimum number of characters for a valid string.
maxThe maximum number of characters for a valid string.

Returns

A boolean indicating whether the string is valid (true) or not (false).

See Also

  • Zend_Validate_StringLength

checkEmail

static function checkEmail($var)

Validates an email address string.  Uses Zend_Validate_EmailAddress.

Arguments

varThe email address string to validate.

Returns

A boolean indicating whether the email address is valid (true) or not (false).

See Also

  • Zend_Validate_EmailAddress
static function checkLength($var,
$min,
$max)
Validates the length of a string.
static function checkEmail($var)
Validates an email address string.
Close