summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework/http/downloadresponse.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-05-06 20:38:34 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-05-06 20:38:34 +0200
commite47b186d5117b56eb73a9d6c6f95d4d78ddd6084 (patch)
treece9a2b4feb3a3e77b4849eba768a22ba0d8ba924 /lib/public/appframework/http/downloadresponse.php
parent09c507246d6795eb389c2b97af5db0200800637e (diff)
downloadnextcloud-server-e47b186d5117b56eb73a9d6c6f95d4d78ddd6084.tar.gz
nextcloud-server-e47b186d5117b56eb73a9d6c6f95d4d78ddd6084.zip
Move \OCP\AppFramework to PSR-4
Diffstat (limited to 'lib/public/appframework/http/downloadresponse.php')
-rw-r--r--lib/public/appframework/http/downloadresponse.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/lib/public/appframework/http/downloadresponse.php b/lib/public/appframework/http/downloadresponse.php
deleted file mode 100644
index af0d76951ca..00000000000
--- a/lib/public/appframework/http/downloadresponse.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @author Morris Jobke <hey@morrisjobke.de>
- * @author Thomas Müller <thomas.mueller@tmit.eu>
- *
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-
-
-namespace OCP\AppFramework\Http;
-
-
-/**
- * Prompts the user to download the a file
- * @since 7.0.0
- */
-class DownloadResponse extends \OCP\AppFramework\Http\Response {
-
- private $filename;
- private $contentType;
-
- /**
- * Creates a response that prompts the user to download the file
- * @param string $filename the name that the downloaded file should have
- * @param string $contentType the mimetype that the downloaded file should have
- * @since 7.0.0
- */
- public function __construct($filename, $contentType) {
- $this->filename = $filename;
- $this->contentType = $contentType;
-
- $this->addHeader('Content-Disposition', 'attachment; filename="' . $filename . '"');
- $this->addHeader('Content-Type', $contentType);
- }
-
-
-}