Symbiote\Multisites\Job\TidySiteTask
This task is designed to smooth out data integrity edge cases when duplicating a site object and children.
PLEASE NOTE, it's also handy to just clean up a site object and children (in a non-destructive manner).
@author Nathan Glasl <nathan@symbiote.com.au>
Synopsis
class TidySiteTask
extends BuildTask
{
- // members
- private static string $segment = 'TidySiteTask';
- protected string $description = "This task is designed to smooth out data integrity edge cases when duplicating a site object and children. PLEASE NOTE, it's also handy to just clean up a site object and children (in a non-destructive manner).";
- protected $siteID;
- protected integer $count = 0;
- protected $purge;
- protected integer $purged = 0;
- // methods
- public void run()
- public void recursiveTidy()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $segment
protected
- $count
- $description
- $purge
- $purged
- $siteID
Methods
public
- recursiveTidy() — This recursively goes through children to ensure everything is tidy.
- run()