validators\Validator $message

$message public property The user-defined error message. It may contain the following placeholders which will be replaced accordingly by the validator: {attribute}: the label of the attribute being validated {value}: the value of the attribute being validated Note that some validators may introduce other properties for error messages used when specific validation conditions are not met. Please refer to individual class API documentation for details about these properties. By convention, t

validators\Validator $skipOnEmpty

$skipOnEmpty public property Whether this validation rule should be skipped if the attribute value is null or an empty string. public boolean $skipOnEmpty = true

validators\Validator $except

$except public property Scenarios that the validator should not be applied to. For multiple scenarios, please specify them as an array; for single scenario, you may use either a string or an array. public array|string $except = []

validators\Validator $attributes

$attributes public property Attributes to be validated by this validator. For multiple attributes, please specify them as an array; for single attribute, you may use either a string or an array. public array|string $attributes = []

validators\Validator $builtInValidators

$builtInValidators public static property List of built-in validators (name => class or configuration) public static array $builtInValidators = ['boolean' => 'yii\validators\BooleanValidator', 'captcha' => 'yii\captcha\CaptchaValidator', 'compare' => 'yii\validators\CompareValidator', 'date' => 'yii\validators\DateValidator', 'datetime' => ['class' => 'yii\validators\DateValidator', 'type' => \yii\validators\DateValidator::TYPE_DATETIME], 'time' => ['class' =>

validators\Validator $enableClientValidation

$enableClientValidation public property Whether to enable client-side validation for this validator. The actual client-side validation is done via the JavaScript code returned by clientValidateAttribute(). If that method returns null, even if this property is true, no client-side validation will be done by this validator. public boolean $enableClientValidation = true

validators\ValidationAsset $js

$js public property public $js = ['yii.validation.js']

validators\ValidationAsset $depends

$depends public property public $depends = ['yii\web\YiiAsset']

validators\ValidationAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/assets'

validators\UrlValidator validateValue()

validateValue() protected method Validates a value. A validator class can implement this method to support data validation out of the context of a data model. protected array|null validateValue ( $value )$value mixed The data value to be validated. return array|null The error message and the parameters to be inserted into the error message. Null should be returned if the data is valid. throws yii\base\NotSupportedException if the validator does not supporting data validation withou