validators\ImageValidator $notImage

$notImage public property The error message used when the uploaded file is not an image. You may use the following tokens in the message: {attribute}: the attribute name {file}: the uploaded file name public string $notImage = null

validators\ImageValidator $minHeight

$minHeight public property The minimum height in pixels. Defaults to null, meaning no limit. See also $underHeight for the customized message used when image height is too small. public integer $minHeight = null

validators\ImageValidator $minWidth

$minWidth public property The minimum width in pixels. Defaults to null, meaning no limit. See also $underWidth for the customized message used when image width is too small. public integer $minWidth = null

validators\ImageValidator $maxWidth

$maxWidth public property The maximum width in pixels. Defaults to null, meaning no limit. See also $overWidth for the customized message used when image width is too big. public integer $maxWidth = null

validators\ImageValidator $maxHeight

$maxHeight public property The maximum width in pixels. Defaults to null, meaning no limit. See also $overWidth for the customized message used when image height is too big. public integer $maxHeight = null

validators\FilterValidator validateAttribute()

validateAttribute() public method Validates a single attribute. Child classes must implement this method to provide the actual validation logic. public void validateAttribute ( $model, $attribute )$model yii\base\Model The data model to be validated $attribute string The name of the attribute to be validated.

validators\FilterValidator init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

validators\FilterValidator clientValidateAttribute()

clientValidateAttribute() public method Returns the JavaScript needed for performing client-side validation. You may override this method to return the JavaScript validation code if the validator can support client-side validation. The following JavaScript variables are predefined and can be used in the validation code: attribute: an object describing the the attribute being validated. value: the value being validated. messages: an array used to hold the validation error messages for the

validators\FilterValidator $filter

$filter public property The filter. This can be a global function name, anonymous function, etc. The function signature must be as follows, function foo($value) { // compute $newValue here return $newValue; } public callable $filter = null

validators\FilterValidator $skipOnEmpty

$skipOnEmpty public property This property is overwritten to be false so that this validator will be applied when the value being validated is empty. public boolean $skipOnEmpty = false