You are on page 1of 1

required mixed the desired value that the attribute must have.

filter callback the filter method


whether the attribute value can be null or empty.
match string the regular expression to be matched with
email whether the attribute value can be null or empty.
whether to allow name in the email address (e.
whether to check the MX record for the email address.
whether to check port 25 for the email address.
string the regular expression used to validate email addresses with the name part.
string the regular expression used to validate the attribute value.
whether the attribute value can be null or empty.
string the regular expression used to validates the attribute value.
unique whether the attribute value can be null or empty.
string A class attribute name that should be used to look for attribute value being validated.
whether the comparison is case sensitive.
string A class name that should be used to look for the attribute value being validated.
array additional !uery criteria.
compare whether the attribute value can be null or empty.
string the name of the attribute to be compared with
string the constant value to be compared with
string the operator for comparison.
whether the comparison is strict (both value and type must be the same.
length whether the attribute value can be null or empty.
integer exact length.
integer maximum length.
integer minimum length.
string user"defined error message used when the value is too short.
string user"defined error message used when the value is too long.
in whether the attribute value can be null or empty.
array list of valid values that the attribute value should be among
whether the comparison is strict (both type and value must be the same#
numerical whether the attribute value can be null or empty.
whether the attribute value can only be an integer.
integer|double upper limit of the number.
integer|double lower limit of the number.
string user"defined error message used when the value is too big.
string user"defined error message used when the value is too small.
whether the attribute value can be null or empty.
string $% of the action that renders the &A'(&)A image.
whether the comparison is case sensitive.
type whether the attribute value can be null or empty.
string the format pattern that the date value should follow.
string
string the format pattern that the time value should follow.
string the data type that the attribute should be.
file whether the attribute re!uires a file to be uploaded or not.
integer the maximum file count the given attribute can hold.
integer the maximum number of bytes re!uired for the uploaded file.
integer the minimum number of bytes re!uired for the uploaded file.
string the error message used when the uploaded file is too large.
string the error message used if the count of multiple uploads exceeds limit.
string the error message used when the uploaded file is too small.
mixed a list of file name extensions that are allowed to be uploaded.
string error message used when uploaded file extension is not listed among types.
default whether to set the default value only when the attribute value is null or empty string.
mixed the default value to be set to the specified attributes.
exist whether the attribute value can be null or empty.
string A class attribute name that should be used to look for the attribute value being validated.
string A class name that should be used to look for the attribute value being validated.
array additional !uery criteria.
whether the attribute value can be null or empty.
mixed the value representing false status.
mixed the value representing true status.
safe
unsafe
Yii Framework 1.1 Validators Cheatsheet
requiredValue
strict boolean whether the comparison to re!uired*alue is strict.
filter
allowEmpty boolean
pattern
allowEmpty boolean
allowName boolean
check! boolean
check"ort boolean
full"attern
pattern
url allowEmpty boolean
pattern
allowEmpty boolean
attri#uteName
case$ensiti%e boolean
className
criteria
allowEmpty boolean
compare&ttri#ute
compareValue
operator
strict boolean
allowEmpty boolean
is
max
min
too'ong
too$hort
allowEmpty boolean
range
strict boolean
allowEmpty boolean
integer(nly boolean
max
min
too)ig
too$mall
captcha allowEmpty boolean
captcha&ction
case$ensiti%e boolean
allowEmpty boolean
dateFormat
datetimeFormat the format pattern that the datetime value should follow.
timeFormat
type
allowEmpty boolean
maxFiles
max$i*e
min$i*e
too'arge
tooany
too$mall
types
wrong+ype
set(nEmpty boolean
%alue
allowEmpty boolean
attri#uteName
className
criteria
#oolean allowEmpty boolean
falseValue
strict boolean whether the comparison to true*alue and false*alue is strict.
trueValue
written by schmunk+ phundament.com

You might also like