Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class FileResponse

File download response.

Object
Extended by FileResponse implements IPresenterResponse
Package: Nette\Application\Responses
Author: David Grudl
Located at Application/Responses/FileResponse.php
Methods summary
public
# __construct( string $file, string $name = NULL, string $contentType = NULL )

Parameters

$file
string
file path
$name
string
imposed file name
$contentType
string
MIME content type
public string
# getFile( )

Returns the path to a downloaded file.

Returns the path to a downloaded file.

Returns

string
public string
# getName( )

Returns the file name.

Returns the file name.

Returns

string
public string
# getContentType( )

Returns the MIME content type of a downloaded file.

Returns the MIME content type of a downloaded file.

Returns

string
public
# send( IHttpRequest $httpRequest, IHttpResponse $httpResponse )

Sends response to output.

Sends response to output.

Implementation of

IPresenterResponse::send()
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public boolean $resuming TRUE
#
Magic properties summary
public read-only string $file
#
public read-only string $name
#
public read-only string $contentType
#
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0