\Action_Scheduler\MigrationRunner

Class Runner

Summary

Methods
Properties
Constants
__construct()
run()
migrate_actions()
init_destination()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$source_store
$destination_store
$source_logger
$destination_logger
$batch_fetcher
$action_migrator
$log_migrator
$progress_bar
N/A

Properties

$source_store

$source_store : \Action_Scheduler\Migration\ActionScheduler_Store

Source store instance.

Type

\Action_Scheduler\Migration\ActionScheduler_Store

$destination_store

$destination_store : \Action_Scheduler\Migration\ActionScheduler_Store

Destination store instance.

Type

\Action_Scheduler\Migration\ActionScheduler_Store

$source_logger

$source_logger : \Action_Scheduler\Migration\ActionScheduler_Logger

Source logger instance.

Type

\Action_Scheduler\Migration\ActionScheduler_Logger

$destination_logger

$destination_logger : \Action_Scheduler\Migration\ActionScheduler_Logger

Destination logger instance.

Type

\Action_Scheduler\Migration\ActionScheduler_Logger

$batch_fetcher

$batch_fetcher : \Action_Scheduler\Migration\BatchFetcher

Batch fetcher instance.

Type

normal

$action_migrator

$action_migrator : \Action_Scheduler\Migration\ActionMigrator

Action migrator instance.

Type

normal

$log_migrator

$log_migrator : \Action_Scheduler\Migration\LogMigrator

Log migrator instance.

Type

normal

$progress_bar

$progress_bar : \Action_Scheduler\Migration\ProgressBar

Progress bar instance.

Type

\Action_Scheduler\Migration\ProgressBar

Methods

__construct()

__construct(\Action_Scheduler\Migration\Config  $config) : mixed

Runner constructor.

Parameters

\Action_Scheduler\Migration\Config $config

Migration configuration object.

Returns

mixed

run()

run(int  $batch_size = 10) : int

Run migration batch.

Parameters

int $batch_size

Optional batch size. Default 10.

Returns

int —

Size of batch processed.

migrate_actions()

migrate_actions(array  $action_ids) : mixed

Migration a batch of actions.

Parameters

array $action_ids

List of action IDs to migrate.

Returns

mixed

init_destination()

init_destination() : mixed

Initialize destination store and logger.

Returns

mixed