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>|int
 - Get array of download logs, or the count of existing logs, by specified args.
 - get_download_logs_count_for_permission() : int
 - Get the count of download logs for a given download permission.
 - 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
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
mixed —delete_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
mixed —get_download_logs()
Get array of download logs, or the count of existing logs, by specified args.
    public
                get_download_logs([array<string|int, mixed> $args = array() ]) : array<string|int, mixed>|int
        
        Parameters
- $args : array<string|int, mixed> = array()
 - 
                    
Arguments to define download logs to retrieve. If $args['return'] is 'count' then the count of existing logs will be returned.
 
Return values
array<string|int, mixed>|int —get_download_logs_count_for_permission()
Get the count of download logs for a given download permission.
    public
                get_download_logs_count_for_permission(int $permission_id) : int
        
        Parameters
- $permission_id : int
 - 
                    
Permission to get logs count for.
 
Return values
int —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> —get_table_name()
Get the table name for download logs.
    public
            static    get_table_name() : string
        
    
    
        Return values
string —read()
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
mixed —update()
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
mixed —get_download_log()
Get a download log object.
    private
                get_download_log(array<string|int, mixed> $data) : WC_Customer_Download_Log
        
        Parameters
- $data : array<string|int, mixed>
 - 
                    
From the DB.
 
