Menu

## ActionScheduler_wcSystemStatus
in package

ActionScheduler_wcSystemStatus.php : 6

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

#### $store

ActionScheduler_wcSystemStatus.php : 13

The active data stores

`protected ActionScheduler_Store $store`

### Methods

#### __call()

ActionScheduler_wcSystemStatus.php : 138

is triggered when invoking inaccessible methods in an object context.

`public __call( $name, $arguments) : mixed`

##### Parameters

$name :

  string

$arguments :

  array

##### Tags

link
  https://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.methods

##### Return values

mixed —

#### __construct()

ActionScheduler_wcSystemStatus.php : 15
`public __construct(mixed $store) : mixed`

##### Parameters

$store : mixed

##### Return values

mixed —

#### render()

ActionScheduler_wcSystemStatus.php : 24

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()

ActionScheduler_wcSystemStatus.php : 66

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()

ActionScheduler_wcSystemStatus.php : 38

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()

ActionScheduler_wcSystemStatus.php : 94

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