class DownloadStatistics (View source)

Properties

protected int|null $id

The downloadStatistics record ID.

protected File $file

The downloaded file.

protected int $fileVersion

The version of the downloaded file.

protected int|null $downloaderID

The ID of the user that downloaded the file.

protected int|null $relatedPageID

The ID of the page where the download originated.

protected DateTimeImmutable $downloadDateTime

The date/time when the file has been downloaded.

Methods

__construct()

No description

create(File $file, int $fileVersion, int|null $downloaderID, int|null $relatedPageID, DateTimeImmutable|null $downloadDateTime = null)

No description

int|null
getID()

Get tthe downloadStatistics record ID.

getFile()

Get the downloaded file.

int
getFileVersion()

Get the version of the downloaded file.

int|null
getDownloaderID()

Get the ID of the user that downloaded the file.

int|null
getRelatedPageID()

Get the ID of the user that downloaded the file.

getDownloadDateTime()

Get the ID of the user that downloaded the file.

Details

protected __construct()

No description

static DownloadStatistics create(File $file, int $fileVersion, int|null $downloaderID, int|null $relatedPageID, DateTimeImmutable|null $downloadDateTime = null)

No description

Parameters

File $file
int $fileVersion
int|null $downloaderID
int|null $relatedPageID
DateTimeImmutable|null $downloadDateTime

Return Value

DownloadStatistics

int|null getID()

Get tthe downloadStatistics record ID.

Return Value

int|null

NULL if not yet saved

File getFile()

Get the downloaded file.

Return Value

File

int getFileVersion()

Get the version of the downloaded file.

Return Value

int

int|null getDownloaderID()

Get the ID of the user that downloaded the file.

Return Value

int|null

int|null getRelatedPageID()

Get the ID of the user that downloaded the file.

Return Value

int|null

DateTimeImmutable getDownloadDateTime()

Get the ID of the user that downloaded the file.

Return Value

DateTimeImmutable