Nextcloud PHP API (master)

DataDownloadResponse extends DownloadResponse
in package

Class DataDownloadResponse

Tags
since
8.0.0
template

S of int

template

C of string

template

H of array<string, mixed>

template-extends

DownloadResponse<int, string, array<string, mixed>>

Table of Contents

Properties

$data  : string

Methods

__construct()  : mixed
Creates a response that prompts the user to download the text
render()  : string
setData()  : mixed

Properties

Methods

__construct()

Creates a response that prompts the user to download the text

public __construct(string $data, string $filename, C $contentType[, S $status = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
$data : string

text to be downloaded

$filename : string

the name that the downloaded file should have

$contentType : C

the mimetype that the downloaded file should have

$status : S = Http::STATUS_OK
$headers : H = []
Tags
since
8.0.0

setData()

public setData(string $data) : mixed
Parameters
$data : string
Tags
since
8.0.0

        
On this page

Search results