Sunnysideup\MigrateData\Tasks\PublishAllPages
This code is stolen from somewhere, but unfortunately I am not sure exactly where.
my guess is that it used to be in the CMS.
Synopsis
class PublishAllPages
extends BuildTask
{
- // members
- protected string $title = 'Publish All Pages';
- protected string $description = 'Publish All Pages on the Entire Site (copy content from draft to live)';
- protected integer $step = 10;
- protected boolean $allowed = true;
- protected boolean $onlyPublishedPages = false;
- // methods
- public void setAllowed()
- public void setOnlyPublishedPages()
- public void run()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
protected
- $allowed
- $description
- $onlyPublishedPages
- $step
- $title