\Action_Scheduler\WP_CLISystem_Command

System info WP-CLI commands for Action Scheduler.

Summary

Methods
Properties
Constants
__construct()
datastore()
runner()
status()
version()
source()
No public properties found
No constants found
get_current_datastore()
get_latest_version()
get_current_runner()
get_oldest_and_newest()
get_action_status_date()
$store
N/A
No private methods found
No private properties found
N/A

Properties

$store

$store : \Action_Scheduler\WP_CLI\ActionScheduler_Store

Data store for querying actions

Type

\Action_Scheduler\WP_CLI\ActionScheduler_Store

Methods

__construct()

__construct() : mixed

Construct.

Returns

mixed

datastore()

datastore(array  $args, array  $assoc_args) : void

Print in-use data store class.

Parameters

array $args

Positional args.

array $assoc_args

Keyed args.

runner()

runner(array  $args, array  $assoc_args) : void

Print in-use runner class.

Parameters

array $args

Positional args.

array $assoc_args

Keyed args.

status()

status(array  $args, array  $assoc_args) : void

Get system status.

Parameters

array $args

Positional args.

array $assoc_args

Keyed args.

version()

version(array  $args, array  $assoc_args) : void

Display the active version, or all registered versions.

OPTIONS

[--all] : List all registered versions.

Parameters

array $args

Positional args.

array $assoc_args

Keyed args.

source()

source(array  $args, array  $assoc_args) : void

Display the current source, or all registered sources.

OPTIONS

[--all] : List all registered sources.

[--fullpath] : List full path of source(s).

Parameters

array $args

Positional args.

array $assoc_args

Keyed args.

get_current_datastore()

get_current_datastore() : string

Get current data store.

Returns

string

get_latest_version()

get_latest_version(null|\ActionScheduler_Versions  $instance = null) : string

Get latest version.

Parameters

null|\ActionScheduler_Versions $instance

Versions.

Returns

string

get_current_runner()

get_current_runner() : string

Get current runner.

Returns

string

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') : string

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

string