2017-07-30 22:38:17 +00:00
|
|
|
<?php
|
2018-03-06 08:18:33 +00:00
|
|
|
/**
|
|
|
|
* Customer Download Log Data Store Interface
|
|
|
|
*
|
|
|
|
* @version 3.3.0
|
2020-08-05 16:36:24 +00:00
|
|
|
* @package WooCommerce\Interface
|
2018-03-06 08:18:33 +00:00
|
|
|
*/
|
|
|
|
|
2017-07-30 22:38:17 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WC Customer Download Log Data Store Interface.
|
|
|
|
*
|
|
|
|
* @version 3.3.0
|
|
|
|
*/
|
|
|
|
interface WC_Customer_Download_Log_Data_Store_Interface {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get array of download log ids by specified args.
|
|
|
|
*
|
2018-03-06 08:18:33 +00:00
|
|
|
* @param array $args Arguments.
|
2017-07-30 22:38:17 +00:00
|
|
|
* @return array of WC_Customer_Download_Log
|
|
|
|
*/
|
|
|
|
public function get_download_logs( $args = array() );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get logs for a specific download permission.
|
|
|
|
*
|
2018-03-06 08:18:33 +00:00
|
|
|
* @param int $permission_id Permission ID.
|
2017-07-30 22:38:17 +00:00
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function get_download_logs_for_permission( $permission_id );
|
|
|
|
|
|
|
|
}
|