\Action_Scheduler\MigrationBatchFetcher

Class BatchFetcher

Summary

Methods
Properties
Constants
__construct()
fetch()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
get_query_strategies()
$store
N/A

Properties

$store

$store : \Action_Scheduler\Migration\ActionScheduler_Store

Store instance.

Type

\Action_Scheduler\Migration\ActionScheduler_Store

Methods

__construct()

__construct(\Action_Scheduler\Migration\ActionScheduler_Store  $source_store) : mixed

BatchFetcher constructor.

Parameters

\Action_Scheduler\Migration\ActionScheduler_Store $source_store

Source store object.

Returns

mixed

fetch()

fetch(int  $count = 10) : int[]

Retrieve a list of actions.

Parameters

int $count

The number of actions to retrieve.

Returns

int[] —

A list of action IDs

get_query_strategies()

get_query_strategies(int  $count) : array

Generate a list of prioritized of action search parameters.

Parameters

int $count

Number of actions to find.

Returns

array