Function __global->log_download
Definitions
sources/downloads2.php
- Log a file download, update the downloads counter and the download bandwidth counter.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the download being downloaded |
| $size | integer | No | No | required parameter | N/A | N/A | The size of the download (if zero, no bandwidth will be done - zero implies either an empty file, or a remote file that doesn't affect our bandwidth) |
| $got_before | boolean | No | No | required parameter | N/A | N/A | Whether the download has been downloaded before |
Preview
Code (PHP)
/**
* Log a file download, update the downloads counter and the download bandwidth counter.
*
* @param AUTO_LINK $id The ID of the download being downloaded
* @param integer $size The size of the download (if zero, no bandwidth will be done - zero implies either an empty file, or a remote file that doesn't affect our bandwidth)
* @param boolean $got_before Whether the download has been downloaded before
*/
function log_download(int $id, int $size, bool $got_before)
* Log a file download, update the downloads counter and the download bandwidth counter.
*
* @param AUTO_LINK $id The ID of the download being downloaded
* @param integer $size The size of the download (if zero, no bandwidth will be done - zero implies either an empty file, or a remote file that doesn't affect our bandwidth)
* @param boolean $got_before Whether the download has been downloaded before
*/
function log_download(int $id, int $size, bool $got_before)

