PHP 클래스 WC_REST_Report_Top_Sellers_Controller

상속: extends WC_REST_Report_Sales_Controller
파일 보기 프로젝트 열기: woocommerce/woocommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$namespace string Endpoint namespace.
$rest_base string Route base.

공개 메소드들

메소드 설명
get_item_schema ( ) : array Get the Report's schema, conforming to JSON Schema.
get_items ( WP_REST_Request $request ) : array | WP_Error Get sales reports.
prepare_item_for_response ( stdClass $top_seller, WP_REST_Request $request ) : WP_REST_Response Prepare a report sales object for serialization.

메소드 상세

get_item_schema() 공개 메소드

Get the Report's schema, conforming to JSON Schema.
public get_item_schema ( ) : array
리턴 array

get_items() 공개 메소드

Get sales reports.
public get_items ( WP_REST_Request $request ) : array | WP_Error
$request WP_REST_Request
리턴 array | WP_Error

prepare_item_for_response() 공개 메소드

Prepare a report sales object for serialization.
public prepare_item_for_response ( stdClass $top_seller, WP_REST_Request $request ) : WP_REST_Response
$top_seller stdClass
$request WP_REST_Request Request object.
리턴 WP_REST_Response $response Response data.

프로퍼티 상세

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

Endpoint namespace.
protected string $namespace
리턴 string

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

Route base.
protected string $rest_base
리턴 string