DataDownloadResponse

class OCP\AppFramework\Http\DataDownloadResponse
Class DataDownloadResponse
Source:lib/public/AppFramework/Http/DataDownloadResponse.php#32
Parent:OCP\AppFramework\Http\DownloadResponse

Properties

Methods

public OCP\AppFramework\Http\DataDownloadResponse::__construct($data, $filename, $contentType)
Creates a response that prompts the user to download the text
Source:

lib/public/AppFramework/Http/DataDownloadResponse.php#45

Parameters:
  • $data (string) text to be downloaded
  • $filename (string) the name that the downloaded file should have
  • $contentType (string) the mimetype that the downloaded file should have
Since:

8.0.0

public OCP\AppFramework\Http\DataDownloadResponse::setData($data)
Source:

lib/public/AppFramework/Http/DataDownloadResponse.php#54

Parameters:
  • $data (string)
Since:

8.0.0

public OCP\AppFramework\Http\DataDownloadResponse::render()
Source:lib/public/AppFramework/Http/DataDownloadResponse.php#62
Returns:string
Since:8.0.0