ClassesBigCommerceImportTask Manager

Task_Manager

Class Task_Manager

Responsible for coordinating the sequence of import tasks

  • Full name: \BigCommerce\Import\Task_Manager

Methods

register

Register a new task

public register(\BigCommerce\Import\Task_Definition $task): void

Parameters:

ParameterTypeDescription
$task\BigCommerce\Import\Task_Definition

unregister

Remove a task from the registry

public unregister(\BigCommerce\Import\Task_Definition $task): void

Parameters:

ParameterTypeDescription
$task\BigCommerce\Import\Task_Definition

get_task

public get_task(string $state): \BigCommerce\Import\Task_Definition

Parameters:

ParameterTypeDescription
$statestringThe current state of the import

run_next

Run the next task in the queue

public run_next(string $state): bool

Parameters:

ParameterTypeDescription
$statestring

task_count

Get the total count of registered tasks

public task_count(): int

completed_count

Get the count of tasks completed to get to the current state

public completed_count(mixed $state): int

Parameters:

ParameterTypeDescription
$statemixed

Throws:



Automatically generated on 2025-01-21