FileDisplayResponse
extends Response
in package
implements
ICallbackResponse
Class FileDisplayResponse
Tags
Table of Contents
Interfaces
- ICallbackResponse
- Interface ICallbackResponse
Properties
Methods
- __construct() : mixed
- FileDisplayResponse constructor.
- callback() : mixed
- Outputs the content that should be printed
Properties
$file
private
File|ISimpleFile
$file
Methods
__construct()
FileDisplayResponse constructor.
public
__construct(File|ISimpleFile $file[, S $statusCode = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
- $file : File|ISimpleFile
- $statusCode : S = Http::STATUS_OK
- $headers : H = []
Tags
callback()
Outputs the content that should be printed
public
callback(IOutput $output) : mixed
Parameters
- $output : IOutput