PHP 클래스 WC_Connect_Settings_Pages, woocommerce-connect-client

파일 보기 프로젝트 열기: Automattic/woocommerce-connect-client

보호된 프로퍼티들

프로퍼티 타입 설명
$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