\DownloadController
Controls all downloads
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class DownloadController
extends Page_Controller
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- // methods
- public HTMLText zip()
- public HTMLText process()
- public HTMLText download()
- protected void sendFile()
- protected SS_HTTPResponse sendTempFile()
- protected HTMLText initiateOfflineProcessing()
- protected HTMLText displayCrunchingPage()
- protected HTMLText displayDownloadPage()
- protected void addToLog()
Hierarchy
Extends
- Page_Controller
Members
private
- $allowed_actions
- $url_handlers
Methods
protected
- addToLog()
- displayCrunchingPage()
- displayDownloadPage()
- initiateOfflineProcessing()
- sendFile() — Sends the given file by whatever method is appropriate. Uses php's header() instead of silverstripe's HTTPResponse class to prevent other headers from being added and so we can just use readfile() instead of pulling the whole file into a string for setBody().
- sendTempFile() — Sends the temp file in a safe way for large files.