PHP Class WC_Connect_Settings_Pages, woocommerce-connect-client

Datei anzeigen Open project: Automattic/woocommerce-connect-client

Protected Properties

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

Public Methods

Method Description
__construct ( WC_Connect_Payment_Methods_Store $payment_methods_store, WC_Connect_Service_Settings_Store $service_settings_store, WC_Connect_Service_Schemas_Store $service_schemas_store, WC_Connect_Logger $logger )
get_form_data ( ) Mutate-able settings bootstrapped to the view -- should be identical to what is returned by the WC_REST_Connect_Settings_Controller GET /connect/settings endpoint (see callbackURL below)
get_form_meta ( ) Things used to help render the view, but which cannot be changed in the view
get_packages_form_data ( )
get_packages_form_schema ( )
get_sections ( ) : array Get sections.
output_account_screen ( ) Localizes the bootstrap, enqueues the script and styles for the settings page
output_packages_screen ( )
output_section_tabs ( ) Outputs the section tabs. Based on WC_Settings_Page::output_sections.
output_settings_screen ( ) Output the settings.
tabs ( array $tabs ) : array Filters the tabs to add connect

Method Details

__construct() public method

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

get_form_data() public method

Mutate-able settings bootstrapped to the view -- should be identical to what is returned by the WC_REST_Connect_Settings_Controller GET /connect/settings endpoint (see callbackURL below)
public get_form_data ( )

get_form_meta() public method

Things used to help render the view, but which cannot be changed in the view
public get_form_meta ( )

get_packages_form_data() public method

get_packages_form_schema() public method

get_sections() public method

Get sections.
public get_sections ( ) : array
return array

output_account_screen() public method

Localizes the bootstrap, enqueues the script and styles for the settings page

output_packages_screen() public method

output_section_tabs() public method

We can't derive readily from WC_Settings_Page because we use dependency injection and WC expects to simply include each settings page instance
public output_section_tabs ( )

output_settings_screen() public method

Output the settings.

tabs() public method

Filters the tabs to add connect
public 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

$payment_methods_store protected_oe property

protected WC_Connect_Payment_Methods_Store $payment_methods_store
return WC_Connect_Payment_Methods_Store

$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