Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

API CHANGE Removed Validator::showError(), Validator::getError() and

Validator::getCombinedError(). Use Validator::getErrors() instead
  • Loading branch information...
commit f86e53bad86f3ea7b9fd623b05072b8762dd1486 1 parent ed0e06c
@halkyon halkyon authored
Showing with 0 additions and 31 deletions.
  1. +0 −31 forms/Validator.php
View
31 forms/Validator.php
@@ -126,37 +126,6 @@ function validationError($fieldName, $message, $messageType='') {
}
/**
- * @deprecated 2.4 Use Validator->getErrors() and custom code
- */
- function showError() {
- Deprecation::notice('2.4', 'Use Validator->getErrors() and custom code instead.');
- Debug::show($this->errors);
- }
-
- /**
- * @deprecated 2.4 Use custom code
- */
- function getCombinedError(){
- Deprecation::notice('2.4', 'Use custom code instead.');
- if($this->errors) {
- foreach($this->errors as $error){
- $ret['message'] .= $error['message']."<br />";
- $ret['messageType'] .= $error['messageType']."<br />";
- }
-
- return $ret;
- }
- }
-
- /**
- * @deprecated 2.4 Use getErrors()
- */
- function getError(){
- Deprecation::notice('2.4', 'Use getErrors() instead.');
- return $this->getErrors();
- }
-
- /**
* Returns all errors found by a previous call to {@link validate()}.
* The array contains the following keys for each error:
* - 'fieldName': the name of the FormField instance
Please sign in to comment.
Something went wrong with that request. Please try again.