PHP 클래스 WC_Data_Store

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

공개 메소드들

메소드 설명
__call ( $method, $parameters ) Data stores can define additional functions (for example, coupons have some helper methods for increasing or decreasing usage). This passes through to the instance if that function exists.
__construct ( string $object_type ) Tells WC_Data_Store which object (coupon, product, order, etc) store we want to work with.
create ( &$data ) Create an object in the data store.
delete ( &$data, array $args = [] ) Delete an object from the data store.
get_current_class_name ( ) : string Returns the class name of the current data store.
load ( string $object_type ) Loads a data store for us or returns null if an invalid store.
read ( &$data ) Reads an object from the data store.
update ( &$data ) Update an object in the data store.

메소드 상세

__call() 공개 메소드

Data stores can define additional functions (for example, coupons have some helper methods for increasing or decreasing usage). This passes through to the instance if that function exists.
부터: 2.7.0
public __call ( $method, $parameters )
$method
$parameters

__construct() 공개 메소드

Tells WC_Data_Store which object (coupon, product, order, etc) store we want to work with.
public __construct ( string $object_type )
$object_type string Name of object.

create() 공개 메소드

Create an object in the data store.
부터: 2.7.0
public create ( &$data )

delete() 공개 메소드

Delete an object from the data store.
부터: 2.7.0
public delete ( &$data, array $args = [] )
$args array Array of args to pass to the delete method.

get_current_class_name() 공개 메소드

Returns the class name of the current data store.
부터: 2.7.0
public get_current_class_name ( ) : string
리턴 string

load() 공개 정적인 메소드

Loads a data store for us or returns null if an invalid store.
부터: 2.7.0
public static load ( string $object_type )
$object_type string Name of object.

read() 공개 메소드

Reads an object from the data store.
부터: 2.7.0
public read ( &$data )

update() 공개 메소드

Update an object in the data store.
부터: 2.7.0
public update ( &$data )