Class DownloadResponse (namespace Nette\Application)


File download response.

Object
   |
   --DownloadResponse

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/Responses/DownloadResponse.php (line 35)
Public Method Summary
DownloadResponse
__construct (string $file, [string $name = NULL], [string $contentType = NULL])
string
Returns the MIME content type of an downloaded file.
string
getFile ()
Returns the path to an 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 53

__construct

public DownloadResponse __construct (string $file, [string $name = NULL], [string $contentType = NULL])

Input
string $file file path
string $name user name name
string $contentType MIME content type
Output
DownloadResponse  

line 92

getContentType

public string getContentType ()

Returns the MIME content type of an downloaded file.

Output
string  

line 70

getFile

public string getFile ()

Returns the path to an downloaded file.

Output
string  

line 81

getName

public string getName ()

Returns the file name.

Output
string  

line 103

send

public void send ()

Sends response to output.

Implementation of:

Output
void