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

ConstantVisibilityTypeValue
OPTIONpublic’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:

ParameterTypeDescription
$optionstring
$defaultbool

update_option

protected update_option(string $option, mixed $value, bool $autoload = false): bool

Parameters:

ParameterTypeDescription
$optionstring
$valuemixed
$autoloadbool

add_option

protected add_option(string $option, mixed $value, bool $autoload = false): bool

Parameters:

ParameterTypeDescription
$optionstring
$valuemixed
$autoloadbool

delete_option

protected delete_option(string $option): bool

Parameters:

ParameterTypeDescription
$optionstring


Automatically generated on 2025-01-21