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): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$task | \BigCommerce\Import\Task_Definition |
unregister
Remove a task from the registry
public unregister(\BigCommerce\Import\Task_Definition $task): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$task | \BigCommerce\Import\Task_Definition |
get_task
public get_task(string $state): \BigCommerce\Import\Task_DefinitionParameters:
| Parameter | Type | Description |
|---|---|---|
$state | string | The current state of the import |
run_next
Run the next task in the queue
public run_next(string $state): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$state | string |
task_count
Get the total count of registered tasks
public task_count(): intcompleted_count
Get the count of tasks completed to get to the current state
public completed_count(mixed $state): intParameters:
| Parameter | Type | Description |
|---|---|---|
$state | mixed |
Throws:
Automatically generated on 2025-01-21