mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
2153737da7
ENHANCEMENT Addings hooks in SiteTree for onBeforeUnpublish and onAfterUnpublish ENHANCEMENT Removed GoogleSitemap references in SiteTree (moving to decorator implementation) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66168 467b73ca-7a2a-4603-9d3b-597d59a354a9
31 lines
437 B
PHP
31 lines
437 B
PHP
<?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) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|