MediaWiki fundraising/REL1_35
|
Public Member Functions | |
addError ( $error) | |
addErrors ( $errors) | |
clearValidationError ( $field) | |
Unset validation error for a specific field. | |
getErrors () | |
hasErrors () | |
hasValidationError ( $field=null) | |
Is a specific field invalid, or is any field invalid? | |
Protected Attributes | |
$errors = [] | |
Definition at line 6 of file ErrorState.php.
ErrorState::addError | ( | $error | ) |
PaymentError | ValidationError | $error |
Definition at line 32 of file ErrorState.php.
References clearValidationError(), and hasValidationError().
Referenced by addErrors().
ErrorState::addErrors | ( | $errors | ) |
Definition at line 42 of file ErrorState.php.
References $errors, and addError().
ErrorState::clearValidationError | ( | $field | ) |
Unset validation error for a specific field.
string | $field | data field name |
Definition at line 14 of file ErrorState.php.
Referenced by addError().
ErrorState::getErrors | ( | ) |
Definition at line 51 of file ErrorState.php.
References $errors.
ErrorState::hasErrors | ( | ) |
Definition at line 55 of file ErrorState.php.
ErrorState::hasValidationError | ( | $field = null | ) |
Is a specific field invalid, or is any field invalid?
string | null | $field | data field name, or null to check all fields |
Definition at line 65 of file ErrorState.php.
Referenced by addError().
|
protected |
Definition at line 7 of file ErrorState.php.
Referenced by addErrors(), and getErrors().