mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
30 lines
423 B
PHP
30 lines
423 B
PHP
<?php
|
|
/**
|
|
* Plug-ins for additional functionality in your SiteTree classes.
|
|
*
|
|
* @package cms
|
|
* @subpackage model
|
|
*/
|
|
abstract class SiteTreeExtension extends DataExtension {
|
|
|
|
function onBeforePublish(&$original) {
|
|
}
|
|
|
|
function onAfterPublish(&$original) {
|
|
}
|
|
|
|
function onBeforeUnpublish() {
|
|
}
|
|
|
|
function onAfterUnpublish() {
|
|
}
|
|
|
|
function canAddChildren($member) {
|
|
}
|
|
|
|
function canPublish($member) {
|
|
|
|
}
|
|
|
|
}
|