Class PackedDownloadController
Class PackedDownloadController
This class implements a mass downloader. It can be used to have the shop retrieve a list of resources (denoted by their URLs) and pack them in a ZIP file. The ZIP file is stored in the cache folder and can then be downloaded.
- HttpViewController implements HttpViewControllerInterface
- AdminHttpViewController implements AdminStatusOnlyInterface
- PackedDownloadController
Category: System
Extends: AdminHttpViewController
Located at Controllers/HttpView/Admin/PackedDownloadController.inc.php
Methods summary
public
|
#
__construct(
initializes the controller |
public
|
#
defaultAction( )
Returns an error (JSON-encoded) as this controller does not have a default action |
public
|
#
actionDownloadByJson( )
Retrieves a number of resources and puts them in a ZIP for later retrieval by the user. |
public
|
#
actionDownloadPackage( )
Download a pack of resources retrieved with actionDownloadByJson() identified by a downloadKey |
protected
string
|
#
downloadFile( string $url, string $tmpDir )
Retrieve a file/resource and store in $tmpDir File name is determined from URL. |
protected
downloadKey
|
|
protected
boolean
|
|
protected
string
|
Methods inherited from AdminHttpViewController
Methods inherited from HttpViewController
_callActionMethod()
,
_getPostData()
,
_getPostDataCollection()
,
_getQueryParameter()
,
_getQueryParametersCollection()
,
_render()
,
_validatePageToken()
,
actionDefault()
,
proceed()
Properties summary
Properties inherited from HttpViewController
$assets
,
$contentView
,
$httpContextReader
,
$httpResponseProcessor
,
$postDataArray
,
$queryParametersArray