PHP Class WC_Connect_Help_View, woocommerce-connect-client

ファイルを表示 Open project: Automattic/woocommerce-connect-client

Protected Properties

Property Type Description
$fieldsets
$logger WC_Connect_Logger
$service_schemas_store WC_Connect_Service_Schemas_Store
$service_settings_store WC_Connect_Service_Settings_Store

Public Methods

Method Description
__construct ( WC_Connect_Service_Schemas_Store $service_schemas_store, WC_Connect_Service_Settings_Store $service_settings_store, WC_Connect_Logger $logger )
page ( ) Localizes the bootstrap, enqueues the script and styles for the help page
status_tabs ( array $tabs ) : array Filters the WooCommerce System Status Tabs to add connect

Protected Methods

Method Description
add_fieldset ( $section_slug, $title, $items )
build_indicator ( $id, $icon, $class, $message, $last_updated )
get_debug_items ( )
get_debug_log_data ( ) Gets the last 10 lines from the Connect for WooCommerce log, if it exists
get_form_data ( ) : array Returns the data bootstrap for the help page
get_form_layout ( ) : array Returns the form layout array for the entire help page Iterates over $this->fieldsets to build the form layout
get_form_schema ( ) : object Returns the form schema object for the entire help page
get_health_items ( )
get_indicator_schema ( )
get_services_items ( )
get_support_items ( )

Method Details

__construct() public method

public __construct ( WC_Connect_Service_Schemas_Store $service_schemas_store, WC_Connect_Service_Settings_Store $service_settings_store, WC_Connect_Logger $logger )
$service_schemas_store WC_Connect_Service_Schemas_Store
$service_settings_store WC_Connect_Service_Settings_Store
$logger WC_Connect_Logger

add_fieldset() protected method

protected add_fieldset ( $section_slug, $title, $items )

build_indicator() protected method

protected build_indicator ( $id, $icon, $class, $message, $last_updated )

get_debug_items() protected method

protected get_debug_items ( )

get_debug_log_data() protected method

Gets the last 10 lines from the Connect for WooCommerce log, if it exists
protected get_debug_log_data ( )

get_form_data() protected method

Returns the data bootstrap for the help page
protected get_form_data ( ) : array
return array

get_form_layout() protected method

Returns the form layout array for the entire help page Iterates over $this->fieldsets to build the form layout
protected get_form_layout ( ) : array
return array

get_form_schema() protected method

Returns the form schema object for the entire help page
protected get_form_schema ( ) : object
return object

get_health_items() protected method

protected get_health_items ( )

get_indicator_schema() protected method

protected get_indicator_schema ( )

get_services_items() protected method

protected get_services_items ( )

get_support_items() protected method

protected get_support_items ( )

page() public method

Localizes the bootstrap, enqueues the script and styles for the help page
public page ( )

status_tabs() public method

Filters the WooCommerce System Status Tabs to add connect
public status_tabs ( array $tabs ) : array
$tabs array
return array

Property Details

$fieldsets protected_oe property

protected $fieldsets

$logger protected_oe property

protected WC_Connect_Logger $logger
return WC_Connect_Logger

$service_schemas_store protected_oe property

protected WC_Connect_Service_Schemas_Store $service_schemas_store
return WC_Connect_Service_Schemas_Store

$service_settings_store protected_oe property

protected WC_Connect_Service_Settings_Store $service_settings_store
return WC_Connect_Service_Settings_Store