Version: current

     1 <?php
     2 /**
     3  * Plug-ins for additional functionality in your SiteTree classes.
     4  *
     5  * @package sapphire
     6  * @subpackage model
     7  */
     8 abstract class SiteTreeDecorator extends DataObjectDecorator {
     9
    10     function onBeforePublish(&$original) {
    11     }
    12
    13     function onAfterPublish(&$original) {
    14     }
    15
    16     function onBeforeUnpublish() {
    17     }
    18
    19     function onAfterUnpublish() {
    20     }
    21
    22     function canAddChildren($member) {
    23     }
    24
    25     function canPublish($member) {
    26
    27     }
    28
    29 }
    30
    31 ?>

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -