Lock
Manages a lock mechanism for the BigCommerce import process using WordPress options.
The lock is implemented as a timestamp to prevent concurrent import operations from running simultaneously.
- Full name:
\BigCommerce\Import\Runner\Lock
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
OPTION | public | ’bigcommerce_import.lock’ |
Methods
get_lock
public get_lock(): mixed
release_lock
public release_lock(): mixed
set_lock
public set_lock(): mixed
Inherited methods
get_option
protected get_option(string $option, bool $default = false): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$option | string | |
$default | bool |
update_option
protected update_option(string $option, mixed $value, bool $autoload = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$option | string | |
$value | mixed | |
$autoload | bool |
add_option
protected add_option(string $option, mixed $value, bool $autoload = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$option | string | |
$value | mixed | |
$autoload | bool |
delete_option
protected delete_option(string $option): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$option | string |
Automatically generated on 2025-01-21