ChristopherBolt\PublishWithMe\PublishWithMe
PublishWithMe Publishes/Unpublishes versioned DataObjects that are attached to a Page or parent DataObject when the parent object is published.
DataObjects must have the "Versioned" extension.
Your DataObjects can also have optional versioned functions beginning with "do" that will be called instead of the normal versioning functions. e.g. doPublish
The parent must have a $owns config variable listing the relationships to be published/unpublished etc.
- Author: <chris@christopherbolt.com>
- License: BSD License http://www.silverstripe.org/bsd-license
Synopsis
class PublishWithMe
extends DataExtension
{
- // members
- private static array $owns = ;
- // methods
- private array getItemsToPublish()
- public boolean getIsModifiedOnStage()
- private static void isNew()
- private static void isObjectModifiedOnStage()
- public void updateCMSActions()
- public void updateCMSFields()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $owns
Methods
private
- getItemsToPublish() — Builds an array of objects to manage
- isNew()
- isObjectModifiedOnStage()