validators\DateValidator $min

$min public property (available since version 2.0.4) Lower limit of the date. Defaults to null, meaning no lower limit. This can be a unix timestamp or a string representing a date time value. If this property is a string, $format will be used to parse it. See also $tooSmall for the customized message used when the date is too small. public integer|string $min = null

validators\DateValidator $maxString

$maxString public property (available since version 2.0.4) User friendly value of upper limit to display in the error message. If this property is null, the value of $max will be used (before parsing). public string $maxString = null

validators\DateValidator $max

$max public property (available since version 2.0.4) Upper limit of the date. Defaults to null, meaning no upper limit. This can be a unix timestamp or a string representing a date time value. If this property is a string, $format will be used to parse it. See also $tooBig for the customized message used when the date is too big. public integer|string $max = null

validators\DateValidator $locale

$locale public property The locale ID that is used to localize the date parsing. This is only effective when the PHP intl extension is installed. If not set, the locale of the formatter will be used. See also yii\i18n\Formatter::$locale. public string $locale = null

validators\DateValidator $format

$format public property The date format that the value being validated should follow. This can be a date time pattern as described in the ICU manual. Alternatively this can be a string prefixed with php: representing a format that can be recognized by the PHP Datetime class. Please refer to http://php.net/manual/en/datetime.createfromformat.php on supported formats. If this property is not set, the default value will be obtained from Yii::$app->formatter->dateFormat, see yii\i18n\Form

validators\CompareValidator 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

validators\CompareValidator 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\CompareValidator 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\CompareValidator compareValues()

compareValues() protected method Compares two values with the specified operator. protected boolean compareValues ( $operator, $type, $value, $compareValue )$operator string The comparison operator $type string The type of the values being compared $value mixed The value being compared $compareValue mixed Another value being compared return boolean Whether the comparison using the specified operator is true.

validators\CompareValidator 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