class job_dto extends abstract_dto

Mutable input DTO for opening or updating a job record.

Methods

array
jsonSerialize()

Default implementation to serialize to JSON using the array representation.

__construct(int|null $id = null, string|null $uuid = null, string $extension = 'system', string $jobtype = 'generic', string $transport = 'moodle_adhoc', string $status = 'pending', int $priority = 50, string|null $dedupkey = null, string|null $groupkey = null, string|null $correlationid = null, string|null $subjecttype = null, int|null $subjectid = null, string|null $subjectkey = null, int|null $courseid = null, int|null $userid = null, string|null $payload = null, string|null $runnerref = null, int $attempts = 0, int $maxattempts = 3, int $availableat = 0, int|null $startedat = null, int|null $finishedat = null, int|null $lastattemptat = null, string|null $lastmessage = null, int $timecreated = 0, int $timemodified = 0)

No description

array
to_array()

No description

Details

in abstract_dto at line 36
array jsonSerialize()

Default implementation to serialize to JSON using the array representation.

Return Value

array

at line 29
__construct(int|null $id = null, string|null $uuid = null, string $extension = 'system', string $jobtype = 'generic', string $transport = 'moodle_adhoc', string $status = 'pending', int $priority = 50, string|null $dedupkey = null, string|null $groupkey = null, string|null $correlationid = null, string|null $subjecttype = null, int|null $subjectid = null, string|null $subjectkey = null, int|null $courseid = null, int|null $userid = null, string|null $payload = null, string|null $runnerref = null, int $attempts = 0, int $maxattempts = 3, int $availableat = 0, int|null $startedat = null, int|null $finishedat = null, int|null $lastattemptat = null, string|null $lastmessage = null, int $timecreated = 0, int $timemodified = 0)

No description

Parameters

int|null $id
string|null $uuid
string $extension
string $jobtype
string $transport
string $status
int $priority
string|null $dedupkey
string|null $groupkey
string|null $correlationid
string|null $subjecttype
int|null $subjectid
string|null $subjectkey
int|null $courseid
int|null $userid
string|null $payload
string|null $runnerref
int $attempts
int $maxattempts
int $availableat
int|null $startedat
int|null $finishedat
int|null $lastattemptat
string|null $lastmessage
int $timecreated
int $timemodified

at line 61
array to_array()

No description

Return Value

array