Class DownloadResponse (namespace Nette\Application)


File download response.

Object
   |
   --DownloadResponse

Implements interfaces:

Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Application/Responses/DownloadResponse.php (line 21)
Public Method Summary
DownloadResponse
__construct (string $file, [string $name = NULL], [string $contentType = NULL])
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

__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 78

getContentType

public string getContentType ()

Returns the MIME content type of a downloaded file.

Output
string  

line 56

getFile

public string getFile ()

Returns the path to a downloaded file.

Output
string  

line 67

getName

public string getName ()

Returns the file name.

Output
string  

line 89

send

public void send ()

Sends response to output.

Implementation of:

Output
void