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:

lib/private/AppFramework/Http/Output.php#42

Parameters:
  • $webRoot
public OC\AppFramework\Http\Output::setOutput($out)
Source:

lib/private/AppFramework/Http/Output.php#49

Parameters:
  • $out (string)
public OC\AppFramework\Http\Output::setReadfile($path)
Source:

lib/private/AppFramework/Http/Output.php#58

Parameters:
  • $path (string | resource) or file handle
Returns:

bool false if an error occurred

public OC\AppFramework\Http\Output::setHeader($header)
Source:

lib/private/AppFramework/Http/Output.php#70

Parameters:
  • $header (string)
public OC\AppFramework\Http\Output::setHttpResponseCode($code)
Source:

lib/private/AppFramework/Http/Output.php#77

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:

lib/private/AppFramework/Http/Output.php#97

Parameters:
  • $name (string)
  • $value (string)
  • $expire (int)
  • $path (string)
  • $domain (string)
  • $secure (bool)
  • $httpOnly (bool)