public function revalidate($check_not_empty = array())
 {
     if (!empty($this->errorsForRevalidate)) {
         $fakeErrors = $this->errorsForRevalidate[$this->revalidateCount];
         if ($fakeErrors !== null) {
             $this->revalidateCount++;
             $this->setValidationErrors($fakeErrors);
             return empty($fakeErrors);
         }
     }
     return parent::revalidate($check_not_empty);
 }
 /**
  * Checks current dataset for validation errors
  * TODO: As with every other bit of gateway-related logic that should 
  * definitely be available to every entry point, and functionally has very 
  * little to do with being contained within what in an ideal world would be 
  * a piece of mostly UI, this function needs to be moved inside the gateway 
  * adapter class.
  *
  * @return boolean Returns false on an error-free validation, otherwise true.
  * FIXME: that return value seems backwards to me.
  */
 public function validateForm()
 {
     $validated_ok = $this->adapter->revalidate();
     return !$validated_ok;
 }