Property | Type | Description | |
---|---|---|---|
$skipOnEmpty | this property is overwritten to be false so that this validator will be applied when the value being validated is empty. | ||
$value | the default value or an anonymous function that returns the default value which will be assigned to the attributes being validated if they are empty. The signature of the anonymous function should be as follows, php function($model, $attribute) { compute value return $value; } |
Method | Description | |
---|---|---|
validateAttribute ( $model, $attribute ) |
public $skipOnEmpty |
public $value |