Sync_Log

  • Full name: \BigCommerce\Post_Types\Sync_Log\Sync_Log

Constants

ConstantVisibilityTypeValue
NAMEpublic’bigcommerce_sync_log’
META_STATUSpublic’status’
META_EVENTpublic’event’
META_ERRORSpublic’errors’
META_SUMMARYpublic’summary’
META_DURATIONpublic’duration’
MULTICHANNEL_SUMMARYpublic’multichannel_summary’
MULTICHANNEL_ACTIVEpublic’multichannel_active’

Methods

create_sync

Create a draft sync log

public create_sync(): void

complete_sync

Called on import complete

public complete_sync(array $log): void

Parameters:

ParameterTypeDescription
$logarrayThe current log

log_error

Store errors

public log_error(mixed $error): void

Parameters:

ParameterTypeDescription
$errormixed

diagnostic_data

Add sync logs to Diagnostics panel

public diagnostic_data(array $data): array

Parameters:

ParameterTypeDescription
$dataarray


Automatically generated on 2025-01-21