base\Model beforeValidate()

beforeValidate() public method

This method is invoked before validation starts.

The default implementation raises a beforeValidate event. You may override this method to do preliminary checks before validation. Make sure the parent implementation is invoked so that the event can be raised.

public boolean beforeValidate ( )
return boolean

Whether the validation should be executed. Defaults to true. If false is returned, the validation will stop and the model is considered invalid.

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

Please login to continue.