MIDDAG for Moodle

adhoc_service extends facade

Facade for local_middag\framework\application\service\task\adhoc_service.

Tags
see
adhoc_service
mixin

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_task

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

list()

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
bool

reschedule_or_queue()

public static reschedule_or_queue(adhoc_task $task) : void
Parameters
$task : adhoc_task

        
On this page

Search results