\Downloadable
This is the main extension for products with downloadable files.
It should be attached to any product or variation types that
can have such files.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class Downloadable
extends DataExtension
{
- // members
- private static string $tab_name = 'Downloads';
- private static string $source_folder = 'product-files';
- private static string $zip_folder = 'temp-order-files';
- private static string $download_link_base = 'downloads';
- private static string $small_file_size = '100M';
- private static bool $use_xsendfile = false;
- private static string $crunching_page = '';
- private static string $download_page = '';
- private static integer $crunching_zombie_window = 5;
- private static integer $delete_temp_files_after = 48;
- private static array $db = ;
- private static array $defaults = ;
- private static array $many_many = ;
- protected $_downloads;
- // methods
- public void updateCMSFields()
- public bool HasDownloads()
- public SS_List getDownloads()
Hierarchy
Extends
- DataExtension
Members
private
- $crunching_page — string
- $crunching_zombie_window — int
- $db
- $defaults
- $delete_temp_files_after — int
- $download_link_base — string
- $download_page — string
- $many_many
- $small_file_size — string
- $source_folder — string
- $tab_name — string
- $use_xsendfile — bool
- $zip_folder — string
protected
- $_downloads