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 $minString

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

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 $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\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\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 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 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 $operator

$operator public property The operator for comparison. The following operators are supported: ==: check if two values are equal. The comparison is done is non-strict mode. ===: check if two values are equal. The comparison is done is strict mode. !=: check if two values are NOT equal. The comparison is done is non-strict mode. !==: check if two values are NOT equal. The comparison is done is strict mode. >: check if value being validated is greater than the value being compared with