PHP 클래스 WC_Product_Variation_Data_Store_CPT

저자: WooThemes
상속: extends WC_Product_Data_Store_CPT, implements WC_Object_Data_Store_Interface
파일 보기 프로젝트 열기: woocommerce/woocommerce

공개 메소드들

메소드 설명
create ( &$product ) Create a new product.
read ( &$product ) Reads a product from the database and sets its data to the class.
update ( &$product ) Updates an existing product.
update_post_meta ( &$product ) Helper method that updates all the post meta for a product based on it's settings in the WC_Product class.

보호된 메소드들

메소드 설명
exclude_internal_meta_keys ( object $meta ) : boolean Callback to remove unwanted meta data.
read_product_data ( &$product ) Read post data.
update_attributes ( &$product ) Update attribute meta values.
update_terms ( &$product ) For all stored terms in all taxonomies, save them to the DB.
update_version_and_type ( &$product ) Make sure we store the product version (to track data changes).

메소드 상세

create() 공개 메소드

Create a new product.
부터: 2.7.0
public create ( &$product )

exclude_internal_meta_keys() 보호된 메소드

Callback to remove unwanted meta data.
protected exclude_internal_meta_keys ( object $meta ) : boolean
$meta object
리턴 boolean false if excluded.

read() 공개 메소드

Reads a product from the database and sets its data to the class.
부터: 2.7.0
public read ( &$product )

read_product_data() 보호된 메소드

Read post data.
부터: 2.7.0
protected read_product_data ( &$product )

update() 공개 메소드

Updates an existing product.
부터: 2.7.0
public update ( &$product )

update_attributes() 보호된 메소드

Update attribute meta values.
부터: 2.7.0
protected update_attributes ( &$product )

update_post_meta() 공개 메소드

Helper method that updates all the post meta for a product based on it's settings in the WC_Product class.
부터: 2.7.0
public update_post_meta ( &$product )

update_terms() 보호된 메소드

For all stored terms in all taxonomies, save them to the DB.
부터: 2.7.0
protected update_terms ( &$product )

update_version_and_type() 보호된 메소드

Make sure we store the product version (to track data changes).
부터: 2.7.0
protected update_version_and_type ( &$product )