Blesta Source Documentation

DownloadManagerLogs extends DownloadManagerModel

Download Manager Logs

Logs downloads

Table of Contents

Methods

__construct() Initialize
add() Logs that a file download has occurred
get() Fetches a download log by ID
getAllByFile() Fetches download logs for a given file
getAllByFileCount() Fetches the total number of times a specific file has been downloaded
Methods

add()

Logs that a file download has occurred

public add(array<string|int, mixed> $vars) : mixed
Parameters
$vars : array<string|int, mixed>

get()

Fetches a download log by ID

public get(int $log_id) : mixed
Parameters
$log_id : int

The ID of the log entry to fetch

Return values
mixed —

An stdClass object representing the download log, or false if it does not exist

getAllByFile()

Fetches download logs for a given file

public getAllByFile(int $file_id) : array<string|int, mixed>
Parameters
$file_id : int

The ID of the file whose logs to fetch

Return values
array<string|int, mixed> —

A list of download logs for this file

getAllByFileCount()

Fetches the total number of times a specific file has been downloaded

public getAllByFileCount(int $file_id) : int
Parameters
$file_id : int

The ID of the file whose logs to fetch

Return values
int —

The total number of times the file has been downloaded

Tags
subpackage

plugins.downloadmanager.models

copyright

Copyright (c) 2010, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results