base\Model getActiveValidators()

getActiveValidators() public method

Returns the validators applicable to the current $scenario.

public yii\validators\Validator[] getActiveValidators ( $attribute = null )
$attribute string

The name of the attribute whose applicable validators should be returned. If this is null, the validators for ALL attributes in the model will be returned.

return yii\validators\Validator[]

The validators applicable to the current $scenario.

doc_Yii
2016-10-30 16:51:49
Comments
Leave a Comment

Please login to continue.