Definition at line 11 of file DownloadUtil.php.
◆ getDownloadConfirmationResponse()
static Fossology\Lib\Util\DownloadUtil::getDownloadConfirmationResponse |
( |
|
$downloadUrl, |
|
|
|
$fileName, |
|
|
|
$referer |
|
) |
| |
|
static |
Creates a response with download confirmation
- Parameters
-
string | $downloadUrl | The URL to download from |
string | $fileName | The name of the file to be downloaded |
string | $referer | The page to redirect to after download |
- Returns
- Response
Definition at line 20 of file DownloadUtil.php.
◆ getDownloadResponse()
static Fossology\Lib\Util\DownloadUtil::getDownloadResponse |
( |
|
$content, |
|
|
|
$fileName, |
|
|
|
$contentType = 'text/csv' |
|
) |
| |
|
static |
Creates a response for file download
- Parameters
-
string | $content | The file content |
string | $fileName | The name of the file |
string | $contentType | The content type of the file |
- Returns
- Response
Definition at line 56 of file DownloadUtil.php.
The documentation for this class was generated from the following file: