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
This commit is contained in:
Sean Harvey 2009-05-12 01:58:45 +00:00
parent 21c295d2e3
commit 9ff495188f

View File

@ -123,6 +123,18 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
*/ */
protected $components; 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? * Should dataobjects be validated before they are written?
*/ */
@ -702,12 +714,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
$this->extend('onAfterWrite', $dummy); $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. * Event handler called before deleting from the database.
* You can overload this to clean up or otherwise process data before delete this * 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'); $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. * Load the default values in from the self::$defaults array.
* Will traverse the defaults of the current class and all its parent classes. * Will traverse the defaults of the current class and all its parent classes.