Total Complexity | 2 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | class PreviewPublicController extends PreviewController { |
||
24 | |||
25 | /** |
||
26 | * @PublicPage |
||
27 | * @UseSession |
||
28 | * |
||
29 | * Generates thumbnails for public galleries |
||
30 | * |
||
31 | * The session needs to be maintained open or previews can't be generated |
||
32 | * for files located on encrypted storage |
||
33 | * |
||
34 | * @inheritDoc |
||
35 | * |
||
36 | * @param string $ids the ID of the files of which we need thumbnail previews of |
||
37 | * @param bool $square |
||
38 | * @param float $scale |
||
39 | */ |
||
40 | public function getThumbnails($ids, $square, $scale) { |
||
41 | return parent::getThumbnails($ids, $square, $scale); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @PublicPage |
||
46 | * @UseSession |
||
47 | * @NoCSRFRequired |
||
48 | * |
||
49 | * Shows a large preview of a file |
||
50 | * |
||
51 | * The session needs to be maintained open or previews can't be generated |
||
52 | * for files located on encrypted storage |
||
53 | * |
||
54 | * @inheritDoc |
||
55 | * |
||
56 | * @param int $fileId the ID of the file of which we need a large preview of |
||
57 | * @param int $width |
||
58 | * @param int $height |
||
59 | */ |
||
60 | public function getPreview($fileId, $width, $height) { |
||
62 | } |
||
63 | |||
65 |