DataDisplayResponse¶
-
class
OCP\AppFramework\Http\
DataDisplayResponse
¶ - Class DataDisplayResponse
Source: lib/public/AppFramework/Http/DataDisplayResponse.php#35 Parent: OCP\AppFramework\Http\Response
Properties¶
-
protected static property
OCP\AppFramework\Http\DataDisplayResponse::$
data
¶ - response data
Source: lib/public/AppFramework/Http/DataDisplayResponse.php#41 Type: string
Methods¶
-
public
OCP\AppFramework\Http\DataDisplayResponse::
__construct
($data="", $statusCode=\OCP\AppFramework\Http::STATUS_OK, $headers=[])¶ Source: Parameters: - $data (string) the data to display
- $statusCode (int) the Http status code, defaults to 200
- $headers (array) additional key value based headers
Since: 8.1.0
-
public
OCP\AppFramework\Http\DataDisplayResponse::
render
()¶ - Outputs data. No processing is done.
Source: lib/public/AppFramework/Http/DataDisplayResponse.php#65 Returns: string Since: 8.1.0
-
public
OCP\AppFramework\Http\DataDisplayResponse::
setData
($data)¶ - Sets values in the data
Source: Parameters: - $data (string) the data to display
Returns: \OCP\AppFramework\Http\DataDisplayResponse
Reference to this objectSince: 8.1.0
-
public
OCP\AppFramework\Http\DataDisplayResponse::
getData
()¶ - Used to get the set parameters
Source: lib/public/AppFramework/Http/DataDisplayResponse.php#88 Returns: string the data Since: 8.1.0