PHP 클래스 WC_Order_Item_Product

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

보호된 프로퍼티들

프로퍼티 타입 설명
$extra_data array Order Data array. This is the core order data exposed in APIs since 2.7.0.

공개 메소드들

메소드 설명
get_item_download_url ( integer $download_id ) : string Get the Download URL.
get_item_downloads ( ) : array Get any associated downloadable files.
get_product ( ) : WC_Product | boolean Get the associated product.
get_product_id ( string $context = 'view' ) : integer Get product ID.
get_quantity ( string $context = 'view' ) : integer Get quantity.
get_subtotal ( string $context = 'view' ) : string Get subtotal.
get_subtotal_tax ( string $context = 'view' ) : string Get subtotal tax.
get_tax_class ( string $context = 'view' ) : string Get tax class.
get_tax_status ( ) : string Get tax status.
get_taxes ( string $context = 'view' ) : array Get fee taxes.
get_total ( string $context = 'view' ) : string Get total.
get_total_tax ( string $context = 'view' ) : string Get total tax.
get_type ( ) : string Get order item type.
get_variation_id ( string $context = 'view' ) : integer Get variation ID.
offsetExists ( string $offset ) : boolean offsetExists for ArrayAccess
offsetGet ( string $offset ) : mixed offsetGet for ArrayAccess/Backwards compatibility.
offsetSet ( string $offset, mixed $value ) offsetSet for ArrayAccess/Backwards compatibility.
set_backorder_meta ( ) Set meta data for backordered products.
set_product ( WC_Product $product ) Set properties based on passed in product object.
set_product_id ( integer $value ) Set Product ID
set_quantity ( integer $value ) Set quantity.
set_subtotal ( string $value ) Line subtotal (before discounts).
set_subtotal_tax ( string $value ) Line subtotal tax (before discounts).
set_tax_class ( string $value ) Set tax class.
set_taxes ( array $raw_tax_data ) Set line taxes and totals for passed in taxes.
set_total ( string $value ) Line total (after discounts).
set_total_tax ( string $value ) Line total tax (after discounts).
set_variation ( array $data ) Set variation data (stored as meta data - write only).
set_variation_id ( integer $value ) Set variation ID.

메소드 상세

get_item_download_url() 공개 메소드

Get the Download URL.
public get_item_download_url ( integer $download_id ) : string
$download_id integer
리턴 string

get_item_downloads() 공개 메소드

Get any associated downloadable files.
public get_item_downloads ( ) : array
리턴 array

get_product() 공개 메소드

Get the associated product.
public get_product ( ) : WC_Product | boolean
리턴 WC_Product | boolean

get_product_id() 공개 메소드

Get product ID.
public get_product_id ( string $context = 'view' ) : integer
$context string
리턴 integer

get_quantity() 공개 메소드

Get quantity.
public get_quantity ( string $context = 'view' ) : integer
$context string
리턴 integer

get_subtotal() 공개 메소드

Get subtotal.
public get_subtotal ( string $context = 'view' ) : string
$context string
리턴 string

get_subtotal_tax() 공개 메소드

Get subtotal tax.
public get_subtotal_tax ( string $context = 'view' ) : string
$context string
리턴 string

get_tax_class() 공개 메소드

Get tax class.
public get_tax_class ( string $context = 'view' ) : string
$context string
리턴 string

get_tax_status() 공개 메소드

Get tax status.
public get_tax_status ( ) : string
리턴 string

get_taxes() 공개 메소드

Get fee taxes.
public get_taxes ( string $context = 'view' ) : array
$context string
리턴 array

get_total() 공개 메소드

Get total.
public get_total ( string $context = 'view' ) : string
$context string
리턴 string

get_total_tax() 공개 메소드

Get total tax.
public get_total_tax ( string $context = 'view' ) : string
$context string
리턴 string

get_type() 공개 메소드

Get order item type.
public get_type ( ) : string
리턴 string

get_variation_id() 공개 메소드

Get variation ID.
public get_variation_id ( string $context = 'view' ) : integer
$context string
리턴 integer

offsetExists() 공개 메소드

offsetExists for ArrayAccess
public offsetExists ( string $offset ) : boolean
$offset string
리턴 boolean

offsetGet() 공개 메소드

offsetGet for ArrayAccess/Backwards compatibility.
사용 중단: Add deprecation notices in future release.
public offsetGet ( string $offset ) : mixed
$offset string
리턴 mixed

offsetSet() 공개 메소드

offsetSet for ArrayAccess/Backwards compatibility.
사용 중단: Add deprecation notices in future release.
public offsetSet ( string $offset, mixed $value )
$offset string
$value mixed

set_backorder_meta() 공개 메소드

Set meta data for backordered products.
public set_backorder_meta ( )

set_product() 공개 메소드

Set properties based on passed in product object.
public set_product ( WC_Product $product )
$product WC_Product

set_product_id() 공개 메소드

Set Product ID
public set_product_id ( integer $value )
$value integer

set_quantity() 공개 메소드

Set quantity.
public set_quantity ( integer $value )
$value integer

set_subtotal() 공개 메소드

Line subtotal (before discounts).
public set_subtotal ( string $value )
$value string

set_subtotal_tax() 공개 메소드

Line subtotal tax (before discounts).
public set_subtotal_tax ( string $value )
$value string

set_tax_class() 공개 메소드

Set tax class.
public set_tax_class ( string $value )
$value string

set_taxes() 공개 메소드

Set line taxes and totals for passed in taxes.
public set_taxes ( array $raw_tax_data )
$raw_tax_data array

set_total() 공개 메소드

Line total (after discounts).
public set_total ( string $value )
$value string

set_total_tax() 공개 메소드

Line total tax (after discounts).
public set_total_tax ( string $value )
$value string

set_variation() 공개 메소드

Set variation data (stored as meta data - write only).
public set_variation ( array $data )
$data array Key/Value pairs

set_variation_id() 공개 메소드

Set variation ID.
public set_variation_id ( integer $value )
$value integer

프로퍼티 상세

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

Order Data array. This is the core order data exposed in APIs since 2.7.0.
부터: 2.7.0
protected array $extra_data
리턴 array