PHP Класс WC_Data_Store

С версии: 2.7.0
Автор: WooThemes
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )