DataDownloadResponse
extends DownloadResponse
in package
Class DataDownloadResponse
Tags
Table of Contents
Properties
- $data : string
Methods
- __construct() : mixed
- Creates a response that prompts the user to download the text
- render() : string
- setData() : mixed
Properties
$data
private
string
$data
Methods
__construct()
Creates a response that prompts the user to download the text
public
__construct(string $data, string $filename, C $contentType[, S $status = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
- $data : string
-
text to be downloaded
- $filename : string
-
the name that the downloaded file should have
- $contentType : C
-
the mimetype that the downloaded file should have
- $status : S = Http::STATUS_OK
- $headers : H = []
Tags
render()
public
render() : string
Tags
Return values
stringsetData()
public
setData(string $data) : mixed
Parameters
- $data : string