Ejemplo n.º 1
0
 /**
  * Returns TRUE if $value is valid for this field, or a
  * FileMaker_Error_Validation object describing how pre-validation
  * failed.
  *
  * @param mixed $value Value to pre-validate.
  * @param FileMaker_Error_Validation $error If pre-validation is being 
  *        done on more than one field, you may pass validate() an existing 
  *        error object to add pre-validation failures to.$error is not 
  *        passed by reference, though, so you must catch the return value 
  *        of validate() and use it as the new $error object. This method 
  *        never overwrites an existing $error object with boolean TRUE.
  *
  * @return boolean|FileMaker_Error_Validation Result of field 
  *         pre-validation on $value.
  */
 function validate($value, $error = null)
 {
     return $this->_impl->validate($value, $error);
 }