From 9ff495188fbd2407105e67b755c719cb5999017c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 12 May 2009 01:58:45 +0000 Subject: [PATCH] MINOR Moved protected variables brokenOnWrite and brokenOnDelete to top of DataObject for consistency git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@76607 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 660877857..f345821f9 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -123,6 +123,18 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity */ protected $components; + /** + * Used by onBeforeDelete() to ensure child classes call parent::onBeforeDelete() + * @var boolean + */ + protected $brokenOnDelete = false; + + /** + * Used by onBeforeWrite() to ensure child classes call parent::onBeforeWrite() + * @var boolean + */ + protected $brokenOnWrite = false; + /** * Should dataobjects be validated before they are written? */ @@ -702,12 +714,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity $this->extend('onAfterWrite', $dummy); } - /** - * Used by onBeforeWrite() to ensure child classes call parent::onBeforeWrite() - * @var boolean - */ - protected $brokenOnWrite = false; - /** * Event handler called before deleting from the database. * You can overload this to clean up or otherwise process data before delete this @@ -726,12 +732,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity $this->extend('onAfterDelete'); } - /** - * Used by onBeforeDelete() to ensure child classes call parent::onBeforeDelete() - * @var boolean - */ - protected $brokenOnDelete = false; - /** * Load the default values in from the self::$defaults array. * Will traverse the defaults of the current class and all its parent classes.