adhoc_task_dto
final class adhoc_task_dto extends abstract_dto
| internal |
Data Transfer Object for adhoc tasks.
Represents a snapshot of an adhoc task, independent of the Moodle core API.
Methods
array
jsonSerialize()
Default implementation to serialize to JSON using the array representation.
from
abstract_dto
__construct(string $classname, string $component, int|null $userid, int $nextruntime, string $customdata, int $faildelay, bool $running, int $id)
Constructor.
array
to_array()
Convert the DTO to an associative array.
Details
in
abstract_dto at line 38
array
jsonSerialize()
Default implementation to serialize to JSON using the array representation.
at line 44
__construct(string $classname, string $component, int|null $userid, int $nextruntime, string $customdata, int $faildelay, bool $running, int $id)
Constructor.
at line 68
array
to_array()
Convert the DTO to an associative array.
at line 83
stdClass
to_object()
Convert the DTO to a stdClass.