public function beforeValidate()
    {
        $event = new ModelEvent;
        $this->trigger(self::EVENT_BEFORE_VALIDATE, $event);

        return $event->isValid;
    }
public function beforeValidate()
    {
        $event = new ModelEvent;
        $this->trigger(self::EVENT_BEFORE_VALIDATE, $event);

        return $event->isValid;
    }
public function beforeValidate ( ) { $ event = new ModelEvent ; $ this -> trigger ( self :: EVENT_BEFORE_VALIDATE , $ event ) ; return $ event -> isValid ; }
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.
@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.
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 .