37 lines
837 B
PHP
37 lines
837 B
PHP
|
<?php
|
||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||
|
exit;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* WC Dummy Data Store: CPT.
|
||
|
*
|
||
|
* Used to test swapping out data stores.
|
||
|
*
|
||
|
* @version 2.7.0
|
||
|
* @category Class
|
||
|
* @author WooThemes
|
||
|
*/
|
||
|
class WC_Dummy_Data_Store_CPT implements WC_Object_Data_Store {
|
||
|
public function create( &$data ) { }
|
||
|
public function read( &$data ) { }
|
||
|
public function update( &$data ) { }
|
||
|
public function delete( &$data, $force_delete = false ) { }
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* WC Dummy Data Store: Custom Table.
|
||
|
*
|
||
|
* Used to test swapping out data stores.
|
||
|
*
|
||
|
* @version 2.7.0
|
||
|
* @category Class
|
||
|
* @author WooThemes
|
||
|
*/
|
||
|
class WC_Dummy_Data_Store_Custom_Table implements WC_Object_Data_Store {
|
||
|
public function create( &$data ) { }
|
||
|
public function read( &$data ) { }
|
||
|
public function update( &$data ) { }
|
||
|
public function delete( &$data, $force_delete = false ) { }
|
||
|
}
|