TractorCow\WebConsole\Model\BackgroundTask
Represents a task that runs in the background
Synopsis
class BackgroundTask
extends DataObject
{
- // constants
- const READY = 'Ready';
- const STARTED = 'Started';
- const FINISHED = 'Finished';
- // members
- private static string $table_name = 'WebConsole_BackgroundTask';
- private static string $default_sort = '"WebConsole_BackgroundTask"."ID" DESC';
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $defaults = ;
- // methods
- public void getTitle()
- public void getNiceStatus()
- public void getDuration()
- public string getOutputPath()
- public string getOutput()
- public void start()
- public void complete()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Constants
Name | Value |
---|---|
READY | 'Ready' |
STARTED | 'Started' |
FINISHED | 'Finished' |
Members
private
- $db
- $default_sort
- $defaults
- $has_one
- $summary_fields
- $table_name
Methods
public
- canDelete()
- canEdit()
- complete() — Mark this task as complete
- getDuration()
- getNiceStatus()
- getOutput()
- getOutputPath() — Get path to output file.
- getTitle()
- start() — Start a task