validators\RegularExpressionValidator 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 without a model

doc_Yii
2016-10-30 17:14:03
Comments
Leave a Comment

Please login to continue.