\DownloadableProduct
Synopsis
class DownloadableProduct
extends Product
{
- // members
- private static array $allowed_order_statuses = ;
- private static string $description = "A product that can be downloaded";
- private static array $db = ;
- private static array $has_one = ;
- private static array $casting = ;
- private static array $defaults = ;
- // methods
- public boolean getDeliverable()
- public void getDownloadLink()
- public void getCMSFields()
- public void requireDefaultRecords()
- public void onBeforeWrite()
- public void canDownload()
Hierarchy
Extends
- Product
Members
private
-
$allowed_order_statuses
A list of statuses that an order containing this product must have in order to allow this product to be downloaded. - $casting
- $db
- $defaults
- $description
- $has_one
Methods
public
- canDownload()
- getCMSFields()
- getDeliverable() — Is this product deliverable? Largely this is used by the shopping cart when adding to cart.
- getDownloadLink() — Get the link to download the file associated with this product
- onBeforeWrite()
- requireDefaultRecords()