Output¶
-
class
OC\AppFramework\Http\
Output
¶ - Very thin wrapper class to make output testable
Source: lib/private/AppFramework/Http/Output.php#35 Implements: OCP\AppFramework\Http\IOutput
Properties¶
Methods¶
-
public
OC\AppFramework\Http\Output::
__construct
($webRoot)¶ Source: Parameters: - $webRoot
-
public
OC\AppFramework\Http\Output::
setOutput
($out)¶ Source: Parameters: - $out (string)
-
public
OC\AppFramework\Http\Output::
setReadfile
($path)¶ Source: Parameters: - $path (string | resource) or file handle
Returns: bool false if an error occurred
-
public
OC\AppFramework\Http\Output::
setHeader
($header)¶ Source: Parameters: - $header (string)
-
public
OC\AppFramework\Http\Output::
setHttpResponseCode
($code)¶ Source: Parameters: - $code (int) sets the http status code
-
public
OC\AppFramework\Http\Output::
getHttpResponseCode
()¶ Source: lib/private/AppFramework/Http/Output.php#84 Returns: int returns the current http response code
-
public
OC\AppFramework\Http\Output::
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)