WC_Customer_Download_Log_Data_Store
in package
implements
WC_Customer_Download_Log_Data_Store_Interface
WC_Customer_Download_Log_Data_Store class.
Interfaces, Classes and Traits
- WC_Customer_Download_Log_Data_Store_Interface
- Customer Download Log Data Store Interface
Table of Contents
- WC_DOWNLOAD_LOG_TABLE = 'wc_download_log'
- create() : mixed
- Create download log entry.
- delete_by_permission_id() : mixed
- Method to delete download logs for a given permission ID.
- get_download_logs() : array
- Get array of download log ids by specified args.
- get_download_logs_for_permission() : array
- Get download logs for a given download permission.
- get_table_name() : string
- Get the table name for download logs.
- read() : mixed
- Method to read a download log from the database.
- update() : mixed
- Method to update a download log in the database.
- get_download_log() : WC_Customer_Download_Log
- Get a download log object.
Constants
WC_DOWNLOAD_LOG_TABLE
public
mixed
WC_DOWNLOAD_LOG_TABLE
= 'wc_download_log'
Methods
create()
Create download log entry.
public
create(WC_Customer_Download_Log &$download_log) : mixed
Parameters
- $download_log : WC_Customer_Download_Log
-
Customer download log object.
Return values
mixeddelete_by_permission_id()
Method to delete download logs for a given permission ID.
public
delete_by_permission_id(int $id) : mixed
Parameters
- $id : int
-
download_id of the downloads that will be deleted.
Tags
Return values
mixedget_download_logs()
Get array of download log ids by specified args.
public
get_download_logs([array $args = array() ]) : array
Parameters
- $args : array = array()
-
Arguments to define download logs to retrieve.
Return values
arrayget_download_logs_for_permission()
Get download logs for a given download permission.
public
get_download_logs_for_permission(int $permission_id) : array
Parameters
- $permission_id : int
-
Permission to get logs for.
Return values
arrayget_table_name()
Get the table name for download logs.
public
static get_table_name() : string
Return values
stringread()
Method to read a download log from the database.
public
read(WC_Customer_Download_Log &$download_log) : mixed
Parameters
- $download_log : WC_Customer_Download_Log
-
Download log object.
Tags
Return values
mixedupdate()
Method to update a download log in the database.
public
update(WC_Customer_Download_Log &$download_log) : mixed
Parameters
- $download_log : WC_Customer_Download_Log
-
Download log object.
Return values
mixedget_download_log()
Get a download log object.
private
get_download_log(array $data) : WC_Customer_Download_Log
Parameters
- $data : array
-
From the DB.