\PermamailCleanupTask
Removes all {@link SentEmail} records up to a specific timestamp, for example, everything but the last 30 days.
Accepts two parameters: "count" and "unit", e.g. ?count=30&unit=days
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class PermamailCleanupTask
extends BuildTask
{
- // members
- protected string $title = 'Permamail clean-up task';
- protected string $description = 'Removes old SentEmail records. Takes two parameters: <em>count</em> and <em>unit</em>, where <em>count</em> is the number of units of time to go back before truncating the records. E.g. <em>?count=30&unit=days</em> will keep the last 30 days of emails.';
- // methods
- public void run()
Hierarchy
Extends
- BuildTask
Members
protected
- $description — string
- $title — string
Methods
public
- run() — Execute the task