MINOR Subclassing from DataExtension instead of DataObjectDecorator

This commit is contained in:
Ingo Schommer 2011-05-01 22:29:20 +12:00
parent 75666d235e
commit 7348ce7077
2 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@
*
* @package translatable
*/
class Translatable extends DataObjectDecorator implements PermissionProvider {
class Translatable extends DataExtension implements PermissionProvider {
/**
* The 'default' language.

View File

@ -962,7 +962,7 @@ class TranslatableTest_DataObject extends DataObject implements TestOnly {
);
}
class TranslatableTest_Decorator extends DataObjectDecorator implements TestOnly {
class TranslatableTest_Extension extends DataExtension implements TestOnly {
function extraStatics() {
return array(
@ -982,5 +982,5 @@ class TranslatableTest_Page extends Page implements TestOnly {
);
}
DataObject::add_extension('TranslatableTest_DataObject', 'TranslatableTest_Decorator');
DataObject::add_extension('TranslatableTest_DataObject', 'TranslatableTest_Extension');
?>