Sync_Log
- Full name:
\BigCommerce\Post_Types\Sync_Log\Sync_Log
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
NAME | public | ’bigcommerce_sync_log’ | |
META_STATUS | public | ’status’ | |
META_EVENT | public | ’event’ | |
META_ERRORS | public | ’errors’ | |
META_SUMMARY | public | ’summary’ | |
META_DURATION | public | ’duration’ | |
MULTICHANNEL_SUMMARY | public | ’multichannel_summary’ | |
MULTICHANNEL_ACTIVE | public | ’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:
Parameter | Type | Description |
---|---|---|
$log | array | The current log |
log_error
Store errors
public log_error(mixed $error): void
Parameters:
Parameter | Type | Description |
---|---|---|
$error | mixed |
diagnostic_data
Add sync logs to Diagnostics panel
public diagnostic_data(array $data): array
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array |
Automatically generated on 2025-01-21