PHP Класс WC_Connect_Settings_Pages, woocommerce-connect-client

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

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() публичный Метод

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

get_packages_form_data() публичный Метод

get_packages_form_schema() публичный Метод

get_sections() публичный Метод

Get sections.
public get_sections ( ) : array
Результат array

output_account_screen() публичный Метод

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

output_packages_screen() публичный Метод

output_section_tabs() публичный Метод

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() публичный Метод

Output the settings.

tabs() публичный Метод

Filters the tabs to add connect
public tabs ( array $tabs ) : array
$tabs array
Результат array

Описание свойств

$fieldsets защищенное свойство

protected $fieldsets

$logger защищенное свойство

protected WC_Connect_Logger $logger
Результат WC_Connect_Logger

$payment_methods_store защищенное свойство

protected WC_Connect_Payment_Methods_Store $payment_methods_store
Результат WC_Connect_Payment_Methods_Store

$service_schemas_store защищенное свойство

protected WC_Connect_Service_Schemas_Store $service_schemas_store
Результат WC_Connect_Service_Schemas_Store

$service_settings_store защищенное свойство

protected WC_Connect_Service_Settings_Store $service_settings_store
Результат WC_Connect_Service_Settings_Store