AbstractTask

class AbstractTask extends Model implements DecoratorItemInterface, TaskInterface

Traits

DecoratorItemTrait
RegisterTrait

Properties summary

Type Property Description
protected $table
protected $guarded
protected $casts
protected $defaultPriority
protected $defaultIsEnabled
protected $defaultIsPeriodic
protected $defaultFrequency
protected $defaultDescription
protected $defaultName
protected $accessLevel
protected $preExecuteCallbacks
protected $postExecuteCallbacks
protected $outputs [['name' => 'Foo Bar', 'defaultValue' => 'baz', 'identifier' => 'foo'],]
protected $callback
protected $skipDailyCron

Methods summary

Return Type Method Name Description
createTable($drop = false) -
static  boot() -
static  firstOfClassOrNew(array $attributes = []) -
static  register($allowDuplicates = false) -
getDefaultAttributes() -
Collection newCollection(array $models = array()) -
getName() -
setName($name) -
execute() -
run() -
getPriority() -
setPriority($priority) -
getDescription() -
setDescription($description) -
getFrequencyMinutes() -
setFrequencyMinutes($minutes) -
anticipatedNextRun(Carbon $date = null) -
anticipatedNextMonthlyRun($checkDay, Carbon $date = null) -
isEnabled() -
setEnabled($state) -
isPeriodic() -
setPeriodic($state) -
getStatus() -
status() -
getSystemName() -
getAccessLevel() -
array getOutputKeys() -
isDailyTask() -
monthlyDayOfExecution() -
isSkipDailyCron() -

Details

createTable ($drop = false)

Parameters

$drop

static protected boot ()

static firstOfClassOrNew (array $attributes = [])

Parameters

array $attributes

static register ($allowDuplicates = false)

Parameters

$allowDuplicates

getDefaultAttributes ()

Collection newCollection (array $models = array())

Parameters

array $models

Return Value

Collection

getName ()

setName ($name)

Parameters

$name

protected execute ()

run ()

getPriority ()

setPriority ($priority)

Parameters

$priority

getDescription ()

setDescription ($description)

Parameters

$description

getFrequencyMinutes ()

setFrequencyMinutes ($minutes)

Parameters

$minutes

anticipatedNextRun (Carbon $date = null)

Parameters

Carbon $date

protected anticipatedNextMonthlyRun ($checkDay, Carbon $date = null)

Parameters

$checkDay
Carbon $date

isEnabled ()

setEnabled ($state)

Parameters

$state

isPeriodic ()

setPeriodic ($state)

Parameters

$state

getStatus ()

status ()

getSystemName ()

getAccessLevel ()

array getOutputKeys ()

Return Value

array

isDailyTask ()

monthlyDayOfExecution ()

isSkipDailyCron ()