mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Partially merged r66168 from branches/2.3 - the last merge was ignoring SiteTreeDecorator.php file which was necessary for the new googlesitemaps module compatiblity
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@75380 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
405a7905e2
commit
c07f20b9a7
31
core/model/SiteTreeDecorator.php
Normal file
31
core/model/SiteTreeDecorator.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Plug-ins for additional functionality in your SiteTree classes.
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage model
|
||||
*/
|
||||
abstract class SiteTreeDecorator extends DataObjectDecorator {
|
||||
|
||||
function onBeforePublish(&$original) {
|
||||
}
|
||||
|
||||
function onAfterPublish(&$original) {
|
||||
}
|
||||
|
||||
function onBeforeUnpublish() {
|
||||
}
|
||||
|
||||
function onAfterUnpublish() {
|
||||
}
|
||||
|
||||
function canAddChildren($member) {
|
||||
}
|
||||
|
||||
function canPublish($member) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user