Example #1
0
 /**
  * 重写validate方法
  * @param unknown $validator
  * @return boolean
  */
 protected function validate($validator)
 {
     parent::validate($validator);
     if ($this->validationHasFailed() == true) {
         return false;
     }
     return true;
 }