adhoc_service extends facade
Facade for local_middag\framework\application\service\task\adhoc_service.
Tags
Table of Contents
Methods
- create() : adhoc_task
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- list() : array<string|int, mixed>
- queue() : bool
- reschedule_or_queue() : void
Methods
create()
public
static create(string $classname[, array<string|int, mixed> $data = = '[]' ][, int|null $userid = = 'null' ]) : adhoc_task
Parameters
- $classname : string
- $data : array<string|int, mixed> = = '[]'
- $userid : int|null = = 'null'
Return values
adhoc_taskget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringlist()
public
static list(string $classname[, bool $failedOnly = = 'false' ]) : array<string|int, mixed>
Parameters
- $classname : string
- $failedOnly : bool = = 'false'
Return values
array<string|int, mixed>queue()
public
static queue(adhoc_task $task[, bool $avoidDuplicates = = 'false' ]) : bool
Parameters
- $task : adhoc_task
- $avoidDuplicates : bool = = 'false'
Return values
boolreschedule_or_queue()
public
static reschedule_or_queue(adhoc_task $task) : void
Parameters
- $task : adhoc_task