Source of file FileExtension.php
Size: 0,575 Bytes - Last Modified: 2021-12-23T10:24:30+00:00
/var/www/docs.ssmods.com/process/src/src/FileExtension.php
123456789101112131415161718192021222324 | <?php namespace SilverCommerce\DownloadableProducts; use SilverStripe\ORM\DataExtension; use SilverCommerce\DownloadableProducts\DownloadableProduct; /** * Custom extension to file that checks if the file is "downloadable", * if ensure the user has bought it (of the correct access key is available) */ class FileExtension extends DataExtension { /** * Files can only be associated with one DownloadableProduct * * @var array */ private static $belongs_to = [ "DownloadableProduct" => DownloadableProduct::class . ".File" ]; } |