MINOR Changed @deprecated 2.3 functions to @deprecated 2.4 and throw a notice if they are used

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77370 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-20 05:48:46 +00:00
parent 5ed5cdd48a
commit 7bf69a8689

View File

@ -70,9 +70,10 @@ abstract class DataObjectDecorator extends Extension {
}
/**
* @deprecated 2.3 Use loadExtraStatics()
* @deprecated 2.4 Use loadExtraStatics()
*/
function loadExtraDBFields() {
user_error('DataObjectDecorator::loadExtraDBFields() is deprecated. Please use loadExtraStatics() instead.', E_USER_NOTICE);
return $this->loadExtraStatics();
}
@ -148,9 +149,10 @@ abstract class DataObjectDecorator extends Extension {
}
/**
* @deprecated 2.3 Use extraStatics()
* @deprecated 2.4 Use extraStatics()
*/
function extraDBFields() {
user_error('DataObjectDecorator::extraDBFields() is deprecated. Please use extraStatics() instead.', E_USER_NOTICE);
return array();
}