Returns the validators applicable to the current [[scenario]].
public getActiveValidators ( string $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 | the validators applicable to the current [[scenario]]. |