\CGBetterUploadsTimeLimitedUpload

An object to represent a time limited URL to a file.

A time limited URL is an additional URL to a file that has more capabilities, including an expiry, an optional email address, an optional password, and an optional number of downloads.

Summary

Methods
Properties
Constants
get()
$guid
$file_guid
$email
$max_downloads
$password_hash
$created
$expires
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$guid

$guid : string

The unique guid of this timelimited URL.

Type

string

$file_guid

$file_guid : string

The guid of the file that can be downloaded.

Type

string

$email

$email : string

The email address that is required in order to download the file using this URL. May be null

Type

string

$max_downloads

$max_downloads : integer

The maximum number of timest hat this URL can be used to download the file.

Type

integer

$password_hash

$password_hash : string

The hashed one way password, that the user must enter before downloading this file. May be null

Type

string

$created

$created : integer

The unix timestamp of when this record was created.

Type

integer

$expires

$expires : integer

The unix timestamp of when this record expires.

Type

integer

Methods

get()

get(string  $key) : mixed

Get a property value.

Parameters

string $key

the property name

Returns

mixed