PHP 클래스 WC_Order_Refund

저자: WooThemes
상속: extends WC_Abstract_Order
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$data_store_name string Which data store to load.
$extra_data array Stores product data.

공개 메소드들

메소드 설명
__construct ( integer | object | WC_Order $read ) Extend the abstract _data properties and then read the order object.
__get ( string $key ) : mixed Magic __get method for backwards compatibility.
get_amount ( string $context = 'view' ) : integer | float Get refunded amount.
get_formatted_refund_amount ( ) : string Get formatted refunded amount.
get_post_title ( ) Get a title for the new post type.
get_reason ( string $context = 'view' ) : integer | float Get refund reason.
get_refund ( integer $id ) : boolean Gets an refund from the database.
get_refund_amount ( ) : integer | float Get refund amount.
get_refund_reason ( ) : integer | float Get refund reason.
get_refunded_by ( string $context = 'view' ) : integer Get ID of user who did the refund.
get_status ( string $context = 'view' ) : string Get status - always completed for refunds.
get_type ( ) : string Get internal type (post type.)
set_amount ( string $value ) Set refunded amount.
set_reason ( string $value ) Set refund reason.
set_refunded_by ( integer $value ) Set refunded by.

보호된 메소드들

메소드 설명
get_hook_prefix ( ) : string Prefix for action and filter hooks on data.

메소드 상세

__construct() 공개 메소드

Extend the abstract _data properties and then read the order object.
public __construct ( integer | object | WC_Order $read )
$read integer | object | WC_Order Order to init.

__get() 공개 메소드

Magic __get method for backwards compatibility.
public __get ( string $key ) : mixed
$key string
리턴 mixed

get_amount() 공개 메소드

Get refunded amount.
public get_amount ( string $context = 'view' ) : integer | float
$context string
리턴 integer | float

get_formatted_refund_amount() 공개 메소드

Get formatted refunded amount.
부터: 2.4

get_hook_prefix() 보호된 메소드

Prefix for action and filter hooks on data.
부터: 2.7.0
protected get_hook_prefix ( ) : string
리턴 string

get_post_title() 공개 메소드

Get a title for the new post type.
public get_post_title ( )

get_reason() 공개 메소드

Get refund reason.
부터: 2.2
public get_reason ( string $context = 'view' ) : integer | float
$context string
리턴 integer | float

get_refund() 공개 메소드

Gets an refund from the database.
사용 중단: 2.7
public get_refund ( integer $id ) : boolean
$id integer (default: 0).
리턴 boolean

get_refund_amount() 공개 메소드

Get refund amount.
사용 중단: 2.7
public get_refund_amount ( ) : integer | float
리턴 integer | float

get_refund_reason() 공개 메소드

Get refund reason.
사용 중단: 2.7
public get_refund_reason ( ) : integer | float
리턴 integer | float

get_refunded_by() 공개 메소드

Get ID of user who did the refund.
부터: 2.7
public get_refunded_by ( string $context = 'view' ) : integer
$context string
리턴 integer

get_status() 공개 메소드

Get status - always completed for refunds.
public get_status ( string $context = 'view' ) : string
$context string
리턴 string

get_type() 공개 메소드

Get internal type (post type.)
public get_type ( ) : string
리턴 string

set_amount() 공개 메소드

Set refunded amount.
public set_amount ( string $value )
$value string

set_reason() 공개 메소드

Set refund reason.
public set_reason ( string $value )
$value string

set_refunded_by() 공개 메소드

Set refunded by.
public set_refunded_by ( integer $value )
$value integer

프로퍼티 상세

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

Which data store to load.
protected string $data_store_name
리턴 string

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

Stores product data.
protected array $extra_data
리턴 array