class scheduled_service extends facade mixin scheduled_service

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

Properties

static protected array<string,object> $resolved_instances

The resolved object instances (cached roots).

from  abstract_facade
static protected bool $cached

Indicates if resolved instances should be cached.

from  abstract_facade

Methods

static mixed
__callStatic(string $method, array $args)

Dynamically handle static method calls on the facade proxy.

static string
get_facade_accessor()

Return the service accessor key for this facade.

static object
get_facade_root()

Get the root object behind the facade.

static void
swap(object $instance)

Swap a given instance for testing or runtime overriding.

static void
clear_resolved_instance(string $name)

Clear one cached facade instance.

static void
clearresolved_instances()

Clear all cached facade instances.

static void
disable_cache()

Disable instance caching (useful for testing).

static void
enable_cache()

Enable instance caching.

static void
reset()

Reset the facade: clear cache and re-enable caching.

static object
resolve_facade_instance(string $name)

Resolve the instance from the Kernel container.

static array
list()

No description

get(string $classname)

No description

static bool
exists(string $classname)

No description

static void
reset_component(string $component)

No description

static array
list_by_component(string $component)

No description

void
static() $\local_middag\framework\shared\dto\moodle\scheduled_task_dto next(int $timestamp)

No description

static bool
is_overdue(scheduled_task_dto $task, ?int $now = null)

No description

static bool
is_customized(scheduled_task_dto $task)

No description

static bool
run_now(string $classname)

No description

static array
list_overdue(?int $now = null)

No description

static array
list_disabled()

No description

static array
list_customized()

No description

Details

in abstract_facade at line 62
static mixed __callStatic(string $method, array $args)

Dynamically handle static method calls on the facade proxy.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

BadMethodCallException
RuntimeException

at line 47
static string get_facade_accessor()

Return the service accessor key for this facade.

Return Value

string

the service ID or class name

in abstract_facade at line 94
static object get_facade_root()

Get the root object behind the facade.

Return Value

object

in abstract_facade at line 104
static void swap(object $instance)

Swap a given instance for testing or runtime overriding.

Parameters

object $instance

Return Value

void

in abstract_facade at line 118
static void clear_resolved_instance(string $name)

Clear one cached facade instance.

Parameters

string $name

Return Value

void

in abstract_facade at line 126
static void clearresolved_instances()

Clear all cached facade instances.

Return Value

void

in abstract_facade at line 134
static void disable_cache()

Disable instance caching (useful for testing).

Return Value

void

in abstract_facade at line 143
static void enable_cache()

Enable instance caching.

Return Value

void

in abstract_facade at line 151
static void reset()

Reset the facade: clear cache and re-enable caching.

Return Value

void

in abstract_facade at line 168
static protected object resolve_facade_instance(string $name)

Resolve the instance from the Kernel container.

Parameters

string $name

service identifier or class name registered in the container

Return Value

object

Exceptions

RuntimeException

at line 42
static array list()

No description

Return Value

array

at line 42
static scheduled_task_dto get(string $classname)

No description

Parameters

string $classname

Return Value

scheduled_task_dto

at line 42
static bool exists(string $classname)

No description

Parameters

string $classname

Return Value

bool

at line 42
static void reset_component(string $component)

No description

Parameters

string $component

Return Value

void

at line 42
static array list_by_component(string $component)

No description

Parameters

string $component

Return Value

array

at line 42
void static() $\local_middag\framework\shared\dto\moodle\scheduled_task_dto next(int $timestamp)

No description

Parameters

) $\local_middag\framework\shared\dto\moodle\scheduled_task_dto next(int $timestamp

Return Value

void

at line 42
static bool is_overdue(scheduled_task_dto $task, ?int $now = null)

No description

Parameters

scheduled_task_dto $task
?int $now

Return Value

bool

at line 42
static bool is_customized(scheduled_task_dto $task)

No description

Parameters

scheduled_task_dto $task

Return Value

bool

at line 42
static bool run_now(string $classname)

No description

Parameters

string $classname

Return Value

bool

at line 42
static array list_overdue(?int $now = null)

No description

Parameters

?int $now

Return Value

array

at line 42
static array list_disabled()

No description

Return Value

array

at line 42
static array list_customized()

No description

Return Value

array