Welcome to mirror list, hosted at ThFree Co, Russian Federation.

filespubliccontroller.php « controller - github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90c06a1a495b47d7471a2a60fb57c79ffcddb499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
 * ownCloud - gallery
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Olivier Paroz <owncloud@interfasys.ch>
 *
 * @copyright Olivier Paroz 2014-2015
 */

namespace OCA\Gallery\Controller;

/**
 * Class FilesPublicController
 *
 * Note: Type casting only works if the "@param" parameters are also included in this class as
 * their not yet inherited
 *
 * @package OCA\Gallery\Controller
 */
class FilesPublicController extends FilesController {

	/**
	 * @PublicPage
	 *
	 * Returns a list of all images from the folder the link gives access to
	 *
	 * @inheritDoc
	 *
	 * @param string $location a path representing the current album in the app
	 * @param string $features the list of supported features
	 * @param string $etag the last known etag in the client
	 * @param string $mediatypes the list of supported media types
	 */
	public function getList($location, $features, $etag, $mediatypes) {
		return parent::getList($location, $features, $etag, $mediatypes);
	}

	/**
	 * @PublicPage
	 * @NoCSRFRequired
	 *
	 * Sends the file matching the fileId
	 *
	 * @inheritDoc
	 *
	 * @param int $fileId the ID of the file we want to download
	 * @param string|null $filename
	 */
	public function download($fileId, $filename = null) {
		return parent::download($fileId, $filename);
	}
}