\DownloadLink
Associates a link hash to a given file and order. This could be overkill, but it does keep the hash from being guessable and/or taking a long time to look up.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class DownloadLink
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $indexes = ;
- // methods
- public static DownloadLink generate()
- public static DownloadLink find_or_make()
- public static DownloadLink get_by_hash()
- public string getURL()
- public string getAbsoluteURL()
- public string Link()
- public string AbsoluteLink()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $has_one
- $indexes
Methods
public
- AbsoluteLink() — This is just here for guessability for template authors
- Link() — This is just here for guessability for template authors
- find_or_make()
- generate()
- getAbsoluteURL()
- getURL()
- get_by_hash()