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

Validator::getCombinedError(). Use Validator::getErrors() instead
This commit is contained in:
Sean Harvey 2012-03-09 10:28:27 +13:00
parent ed0e06c0f6
commit f86e53bad8

View File

@ -125,37 +125,6 @@ abstract class Validator extends Object {
);
}
/**
* @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: