IOutput¶
-
interface
OCP\AppFramework\Http\
IOutput
¶ - Very thin wrapper class to make output testable
Implemented by: OC\AppFramework\Http\Output
Source: lib/public/AppFramework/Http/IOutput.php#34
Methods¶
-
public
OCP\AppFramework\Http\IOutput::
setOutput
($out)¶ Source: Parameters: - $out (string)
Since: 8.1.0
-
public
OCP\AppFramework\Http\IOutput::
setReadfile
($path)¶ Source: Parameters: - $path (string | resource) or file handle
Returns: bool false if an error occurred
Since: 8.1.0
-
public
OCP\AppFramework\Http\IOutput::
setHeader
($header)¶ Source: Parameters: - $header (string)
Since: 8.1.0
-
public
OCP\AppFramework\Http\IOutput::
getHttpResponseCode
()¶ Source: lib/public/AppFramework/Http/IOutput.php#60 Returns: int returns the current http response code Since: 8.1.0
-
public
OCP\AppFramework\Http\IOutput::
setHttpResponseCode
($code)¶ Source: Parameters: - $code (int) sets the http status code
Since: 8.1.0
-
public
OCP\AppFramework\Http\IOutput::
setCookie
($name, $value, $expire, $path, $domain, $secure, $httpOnly, $sameSite=Lax)¶ Source: Parameters: - $name (string)
- $value (string)
- $expire (int)
- $path (string)
- $domain (string)
- $secure (bool)
- $httpOnly (bool)
- $sameSite (string) (added in 20)
Since: 8.1.0