Nextcloud PHP API (master)

IOutput

Very thin wrapper class to make output testable

Tags
since
8.1.0

Table of Contents

Methods

getHttpResponseCode()  : int
setCookie()  : mixed
setHeader()  : mixed
setHttpResponseCode()  : mixed
setOutput()  : mixed
setReadfile()  : bool

Methods

getHttpResponseCode()

public getHttpResponseCode() : int
Tags
since
8.1.0
Return values
int

returns the current http response code

setCookie()

public setCookie(string $name, string $value, int $expire, string $path, string $domain, bool $secure, bool $httpOnly[, string $sameSite = 'Lax' ]) : mixed
Parameters
$name : string
$value : string
$expire : int
$path : string
$domain : string
$secure : bool
$httpOnly : bool
$sameSite : string = 'Lax'

(added in 20)

Tags
since
8.1.0

setHeader()

public setHeader(string $header) : mixed
Parameters
$header : string
Tags
since
8.1.0

setHttpResponseCode()

public setHttpResponseCode(int $code) : mixed
Parameters
$code : int

sets the http status code

Tags
since
8.1.0

setOutput()

public setOutput(string $out) : mixed
Parameters
$out : string
Tags
since
8.1.0

setReadfile()

public setReadfile(string|resource $path) : bool
Parameters
$path : string|resource

or file handle

Tags
since
8.1.0
Return values
bool

false if an error occurred


        
On this page

Search results