\ActionScheduler_wcSystemStatus

Class ActionScheduler_wcSystemStatus

Summary

Methods
Properties
Constants
__construct()
render()
__call()
No public properties found
No constants found
get_oldest_and_newest()
get_action_status_date()
get_template()
$store
N/A
No private methods found
No private properties found
N/A

Properties

$store

$store : \ActionScheduler_Store

The active data stores

Type

normal

Methods

__construct()

__construct(\ActionScheduler_Store  $store) : void

Constructor method for ActionScheduler_wcSystemStatus.

Parameters

\ActionScheduler_Store $store

Active store object.

render()

render() : mixed

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

Helpful to identify issues, like a clogged queue.

Returns

mixed

__call()

__call(string  $name, array  $arguments) : mixed

Is triggered when invoking inaccessible methods in an object context.

Parameters

string $name

Name of method called.

array $arguments

Parameters to invoke the method with.

Returns

mixed

get_oldest_and_newest()

get_oldest_and_newest(array  $status_keys) : array

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

Parameters

array $status_keys

Set of statuses to find oldest & newest action for.

Returns

array

get_action_status_date()

get_action_status_date(string  $status, string  $date_type = 'oldest') : \DateTime

Get oldest or newest scheduled date for a given status.

Parameters

string $status

Action status label/name string.

string $date_type

Oldest or Newest.

Returns

\DateTime

get_template()

get_template(array  $status_labels, array  $action_counts, array  $oldest_and_newest) : mixed

Get oldest or newest scheduled date for a given status.

Parameters

array $status_labels

Set of statuses to find oldest & newest action for.

array $action_counts

Number of actions grouped by status.

array $oldest_and_newest

Date of the oldest and newest action with each status.

Returns

mixed