validators\FileValidator 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 ( $file )
$file
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:13:43
Comments
Leave a Comment

Please login to continue.