MediaWiki fundraising/REL1_35
|
Public Member Functions | |
getClientSideValidation ( $normalized, &$clientRules) | |
Adds rules and error messages to $clientRules for use in client-side validation. | |
validate (GatewayType $unused, $normalized, &$errors) | |
Rudimentary tests of Employer field to ensure right format. | |
Static Protected Attributes | |
static | $key = 'employer' |
Definition at line 3 of file EmployerFieldValidation.php.
EmployerFieldValidation::getClientSideValidation | ( | $normalized, | |
& | $clientRules ) |
Adds rules and error messages to $clientRules for use in client-side validation.
Rule keys: 'required' when true, check that the field is not empty 'pattern' field value must match this regular expression 'message' error message to display if this rule fails
array | $normalized | The gateway's normalized donation data |
array | &$clientRules | Associates field keys with lists of rules |
Implements ClientSideValidationHelper.
Definition at line 33 of file EmployerFieldValidation.php.
References $key.
EmployerFieldValidation::validate | ( | GatewayType | $unused, |
$normalized, | |||
& | $errors ) |
Rudimentary tests of Employer field to ensure right format.
GatewayType | $unused | |
array | $normalized | Normalized donation data |
ErrorState | &$errors | Results of validation to this point |
Implements ValidationHelper.
Definition at line 14 of file EmployerFieldValidation.php.
References $key, DataValidator\cc_number_exists_in_str(), and DataValidator\getError().
|
staticprotected |
Definition at line 5 of file EmployerFieldValidation.php.
Referenced by getClientSideValidation(), and validate().