Namespaces

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

Classes

  • FileResponse
  • ForwardResponse
  • JsonResponse
  • RedirectResponse
  • TextResponse
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class FileResponse

File download response.

Nette\Object
Extended by Nette\Application\Responses\FileResponse implements Nette\Application\IResponse
Namespace: 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( Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse )

Sends response to output.

Sends response to output.

Implementation of

Nette\Application\IResponse::send()
Methods inherited from Nette\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 Nette\Object
$reflection
Nette 2.1 API documentation generated by ApiGen 2.8.0