Troubleshooting_Diagnostics
Class Troubleshooting_Diagnostics
- Full name:
\BigCommerce\Settings\Sections\Troubleshooting_Diagnostics
- Parent class:
\BigCommerce\Settings\Sections\Settings_Section
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
NAME | public | ’bigcommerce_diagnostics’ | |
DIAGNOSTICS_ID | public | ’bigcommerce_diagnostics_id’ | |
DIAGNOSTICS_NAME | public | ’bigcommerce_diagnostics_name’ | |
ABORT_NAME | public | ’bigcommerce_diagnostics_import_abort’ | |
FLUSH_USER | public | ’bigcommerce_diagnostics_cache_user’ | |
FLUSH_PRODUCTS | public | ’bigcommerce_diagnostics_cache_products’ | |
TEXTBOX_NAME | public | ’bigcommerce_diagnostics_output’ | |
LOG_ERRORS | public | ’bigcommerce_diagnostics_log_import_errors’ | |
LOG_FILE_SIZE | public | ’bigcommerce_diagnostics_log_file_size’ | |
SYNC_SITE_URL | public | ’bigcommerce_diagnostics_sync_site_url’ | |
USERS_TRANSIENT | public | ’bigcommerce_users_transient_interval’ | |
AJAX_ACTION | public | ’bigcommerce_support_data’ | |
AJAX_ACTION_IMPORT_ERRORS | public | ’bigcommerce_import_errors_log’ |
Properties
plugin_path
Plugin path
protected string $plugin_path
users_transient_groups
protected $users_transient_groups
Methods
__construct
public __construct(mixed $plugin_path): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$plugin_path | mixed |
register_settings_section
public register_settings_section(): mixed
render_flush_cache
Renders flush cache buttons
public render_flush_cache(mixed $args): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args | mixed |
render_users_transient_settings
Renders users transient cache settings
public render_users_transient_settings(mixed $args): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args | mixed |
render_import_abort
Renders import abort button
public render_import_abort(mixed $args): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args | mixed |
render_sync_site_url
public render_sync_site_url(mixed $args): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args | mixed |
render_field
public render_field(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
render_enable_import_errors
public render_enable_import_errors(mixed $args): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args | mixed |
render_log_file_size
public render_log_file_size(mixed $args): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args | mixed |
get_diagnostics_data
Sets a wp_send_json answer for the ajax call that holds information about the plugin and the hosting system
public get_diagnostics_data(): mixed
get_import_errors
Responds a formatted log content
public get_import_errors(\BigCommerce\Logging\Error_Log $log): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$log | \BigCommerce\Logging\Error_Log |
Inherited methods
render_field
public render_field(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
render_number_field
public render_number_field(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
get_disabled_attr_headless
Get disabled attribute if headless option is on
public get_disabled_attr_headless(): string
Automatically generated on 2025-01-21