Validator
class Validator extends Object
Common validators.
Properties
static array | $messages |
Methods
Is a control's value number greater than or equal to the specified minimum?
Is a control's value number less than or equal to the specified maximum?
Count/length validator. Range is array, min and max length pair.
Details
at line 46
static
formatMessage(Rule $rule, $withValue = TRUE)
internal |
No description
at line 86
static bool
validateEqual(IControl $control, $arg)
Is control's value equal with second parameter?
at line 105
static bool
validateNotEqual(IControl $control, $arg)
Is control's value not equal with second parameter?
at line 115
static bool
validateFilled(IControl $control)
Is control filled?
at line 125
static bool
validateBlank(IControl $control)
Is control not filled?
at line 135
static bool
validateValid(IControl $control)
Is control valid?
at line 145
static bool
validateRange(IControl $control, $range)
Is a control's value number in specified range?
at line 155
static bool
validateMin(IControl $control, $minimum)
Is a control's value number greater than or equal to the specified minimum?
at line 165
static bool
validateMax(IControl $control, $maximum)
Is a control's value number less than or equal to the specified maximum?
at line 175
static bool
validateLength(IControl $control, $range)
Count/length validator. Range is array, min and max length pair.
at line 189
static bool
validateMinLength(IControl $control, $length)
Has control's value minimal count/length?
at line 199
static bool
validateMaxLength(IControl $control, $length)
Is control's value count/length in limit?
at line 209
static bool
validateSubmitted(SubmitButton $control)
Has been button pressed?
at line 219
static bool
validateEmail(IControl $control)
Is control's value valid email address?
at line 229
static bool
validateUrl(IControl $control)
Is control's value valid URL?
at line 246
static bool
validatePattern(IControl $control, $pattern)
Matches control's value regular expression?
at line 256
static bool
validateInteger(IControl $control)
Is a control's value decimal number?
at line 272
static bool
validateFloat(IControl $control)
Is a control's value float number?
at line 287
static bool
validateFileSize(UploadControl $control, $limit)
Is file size in limit?
at line 302
static bool
validateMimeType(UploadControl $control, $mimeType)
Has file specified mime type?
at line 319
static bool
validateImage(UploadControl $control)
Is file image?