Documentation

ActionScheduler_wcSystemStatus
in package

Class ActionScheduler_wcSystemStatus

Table of Contents

$store  : ActionScheduler_Store
The active data stores
__call()  : mixed
is triggered when invoking inaccessible methods in an object context.
__construct()  : mixed
render()  : mixed
Display action data, including number of actions grouped by status and the oldest & newest action in each status.
get_action_status_date()  : DateTime
Get oldest or newest scheduled date for a given status.
get_oldest_and_newest()  : array<string|int, mixed>
Get oldest and newest scheduled dates for a given set of statuses.
get_template()  : mixed
Get oldest or newest scheduled date for a given status.

Properties

Methods

render()

Display action data, including number of actions grouped by status and the oldest & newest action in each status.

public render() : mixed

Helpful to identify issues, like a clogged queue.

Return values
mixed

get_action_status_date()

Get oldest or newest scheduled date for a given status.

protected get_action_status_date(string $status[, string $date_type = 'oldest' ]) : DateTime
Parameters
$status : string

Action status label/name string.

$date_type : string = 'oldest'

Oldest or Newest.

Return values
DateTime

get_oldest_and_newest()

Get oldest and newest scheduled dates for a given set of statuses.

protected get_oldest_and_newest(array<string|int, mixed> $status_keys) : array<string|int, mixed>
Parameters
$status_keys : array<string|int, mixed>

Set of statuses to find oldest & newest action for.

Return values
array<string|int, mixed>

get_template()

Get oldest or newest scheduled date for a given status.

protected get_template(array<string|int, mixed> $status_labels, array<string|int, mixed> $action_counts, array<string|int, mixed> $oldest_and_newest) : mixed
Parameters
$status_labels : array<string|int, mixed>

Set of statuses to find oldest & newest action for.

$action_counts : array<string|int, mixed>

Number of actions grouped by status.

$oldest_and_newest : array<string|int, mixed>

Date of the oldest and newest action with each status.

Return values
mixed

Search results