mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-31 06:48:02 +02:00
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) {
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|