SilverStripe\StaticPublishQueue\Extension\Engine\SiteTreePublishingEngine
This extension couples to the StaticallyPublishable and StaticPublishingTrigger implementations on the SiteTree objects and makes sure the actual change to SiteTree is triggered/enqueued.
Provides the following information as a context to StaticPublishingTrigger:
* action - name of the executed action: publish or unpublish
Synopsis
class SiteTreePublishingEngine
extends SiteTreeExtension
{
- // methods
- public array getToUpdate()
- public array getToDelete()
- public $this setToUpdate()
- public $this setToDelete()
- public void onAfterPublish()
- public void onBeforeUnpublish()
- public void onAfterUnpublish()
- public void collectChanges()
- public void flushChanges()
Hierarchy
Extends
- SilverStripe\CMS\Model\SiteTreeExtension
Members
private
- $toDelete
—
array
Queues the urls to be deleted as part of a next flush operation. - $toUpdate
—
array
Queues the urls to be flushed into the queue.
Methods
public
- collectChanges() — Collect all changes for the given context.
- flushChanges() — Execute URL deletions, enqueue URL updates.
- getToDelete()
- getToUpdate()
- onAfterPublish()
- onAfterUnpublish()
- onBeforeUnpublish()
- setToDelete()
- setToUpdate()