API make DataObject::validate public

See https://github.com/silverstripe/silverstripe-framework/pull/4294
This commit is contained in:
Damian Mooyman 2015-06-17 15:56:44 +12:00
parent dd49a888e8
commit 4aa84f3dd2
2 changed files with 2 additions and 2 deletions

View File

@ -1628,7 +1628,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$this->_cache_statusFlags = null; $this->_cache_statusFlags = null;
} }
protected function validate() { public function validate() {
$result = parent::validate(); $result = parent::validate();
// Allowed children validation // Allowed children validation

View File

@ -344,7 +344,7 @@ class VirtualPage extends Page {
} }
} }
protected function validate() { public function validate() {
$result = parent::validate(); $result = parent::validate();
// "Can be root" validation // "Can be root" validation