WooCommerce Code Reference

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
WC 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<string|int, mixed>
Get array of download log ids by specified args.
get_download_logs_for_permission()  : array<string|int, mixed>
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

Methods

get_download_logs()

Get array of download log ids by specified args.

public get_download_logs([array<string|int, mixed> $args = array() ]) : array<string|int, mixed>
Parameters
$args : array<string|int, mixed> = array()

Arguments to define download logs to retrieve.

Return values
array<string|int, mixed>

get_download_logs_for_permission()

Get download logs for a given download permission.

public get_download_logs_for_permission(int $permission_id) : array<string|int, mixed>
Parameters
$permission_id : int

Permission to get logs for.

Return values
array<string|int, mixed>