Class DownloadResponse (namespace Nette\Application)
File download response.
Object | --DownloadResponse
Implements interfaces:
Public Method Summary | |
---|---|
DownloadResponse |
|
string |
Returns the MIME content type of a downloaded file.
|
string |
getFile
()
Returns the path to a downloaded file.
|
string |
getName
()
Returns the file name.
|
void |
send
()
Sends response to output.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 39 __constructpublic DownloadResponse __construct (string $file, [string $name =
|
||||||||||||||||||
line 78 getContentTypepublic string getContentType () Returns the MIME content type of a downloaded file.
|
||||||||||||||||||
line 56 getFilepublic string getFile () Returns the path to a downloaded file.
|
||||||||||||||||||
line 67 getNamepublic string getName () Returns the file name.
|
||||||||||||||||||
line 89 sendpublic void send () Sends response to output. Implementation of:
|