\Downloadable_File
Synopsis
class Downloadable_File
extends File
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $defaults = ;
- // methods
- public void onBeforeWrite()
- public String generateLicenceKey()
- public void DownloadLink()
- public void RemainingDownloadLimit()
- public void downloadLocation()
- public void cleanupFiles()
- public array findFile()
Hierarchy
Extends
- File
Members
private
- $db
- $defaults
- $has_one
Methods
public
- DownloadLink()
- RemainingDownloadLimit()
- cleanupFiles() — Go through assets/ directory and cleanup downloadable_* files older than download window.
- downloadLocation() — Copy the downloadable file to another location on the server and redirect browser to that location.
- findFile() — Find files matching a pattern using unix "find" command.
- generateLicenceKey() — Generates a unique license key.
- onBeforeWrite() — Generate unique license key before each write.