PHP 클래스 WC_Connect_Service_Schemas_Store, woocommerce-connect-client

파일 보기 프로젝트 열기: Automattic/woocommerce-connect-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$api_client WC_Connect_API_Client
$logger WC_Connect_Logger

공개 메소드들

메소드 설명
__construct ( WC_Connect_API_Client $api_client, WC_Connect_Logger $logger )
fetch_service_schemas_from_connect_server ( )
get_all_service_ids_of_type ( string $type ) : array Returns all service ids of a specific type (e.g. shipping)
get_last_fetch_timestamp ( )
get_packages_schema ( ) : object | null Returns packages schema
get_predefined_packages_schema ( )
get_predefined_packages_schema_for_service ( $service_id )
get_service_schema_by_id ( $service_id ) : object | null Returns a particular service's schema given its id
get_service_schema_by_id_or_instance_id ( string $id_or_instance_id ) : object | null Returns a service's schema given an id or shipping zone instance.
get_service_schema_by_instance_id ( string $instance_id ) : object | null Returns a service's schema given its shipping zone instance
get_service_schemas ( )

보호된 메소드들

메소드 설명
maybe_update_heartbeat ( )
update_last_fetch_timestamp ( )
update_service_schemas ( $service_schemas )

메소드 상세

__construct() 공개 메소드

public __construct ( WC_Connect_API_Client $api_client, WC_Connect_Logger $logger )
$api_client WC_Connect_API_Client
$logger WC_Connect_Logger

fetch_service_schemas_from_connect_server() 공개 메소드

get_all_service_ids_of_type() 공개 메소드

Returns all service ids of a specific type (e.g. shipping)
public get_all_service_ids_of_type ( string $type ) : array
$type string The type of services to return
리턴 array An array of that type's service ids, or an empty array if no such type is known

get_last_fetch_timestamp() 공개 메소드

get_packages_schema() 공개 메소드

Returns packages schema
public get_packages_schema ( ) : object | null
리턴 object | null Packages schema on success, null on failure

get_predefined_packages_schema() 공개 메소드

get_predefined_packages_schema_for_service() 공개 메소드

get_service_schema_by_id() 공개 메소드

Returns a particular service's schema given its id
public get_service_schema_by_id ( $service_id ) : object | null
리턴 object | null The service schema or null if no such id was found

get_service_schema_by_id_or_instance_id() 공개 메소드

Returns a service's schema given an id or shipping zone instance.
public get_service_schema_by_id_or_instance_id ( string $id_or_instance_id ) : object | null
$id_or_instance_id string String ID or numeric instance ID.
리턴 object | null Service schema on success, null on failure

get_service_schema_by_instance_id() 공개 메소드

Returns a service's schema given its shipping zone instance
public get_service_schema_by_instance_id ( string $instance_id ) : object | null
$instance_id string The shipping zone instance id for which to return the schema
리턴 object | null The service schema or null if no such instance was found

get_service_schemas() 공개 메소드

public get_service_schemas ( )

maybe_update_heartbeat() 보호된 메소드

protected maybe_update_heartbeat ( )

update_last_fetch_timestamp() 보호된 메소드

update_service_schemas() 보호된 메소드

protected update_service_schemas ( $service_schemas )

프로퍼티 상세

$api_client 보호되어 있는 프로퍼티

protected WC_Connect_API_Client $api_client
리턴 WC_Connect_API_Client

$logger 보호되어 있는 프로퍼티

protected WC_Connect_Logger $logger
리턴 WC_Connect_Logger