| 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 | 2 | public function getThumbnails($ids, $square, $scale) { |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @PublicPage |
||
| 46 | * @UseSession |
||
| 47 | * |
||
| 48 | * Shows a large preview of a file |
||
| 49 | * |
||
| 50 | * The session needs to be maintained open or previews can't be generated |
||
| 51 | * for files located on encrypted storage |
||
| 52 | * |
||
| 53 | * @inheritDoc |
||
| 54 | * |
||
| 55 | * @param int $fileId the ID of the file of which we need a large preview of |
||
| 56 | * @param int $width |
||
| 57 | * @param int $height |
||
| 58 | */ |
||
| 59 | 4 | public function getPreview($fileId, $width, $height) { |
|
| 62 | |||
| 63 | } |
||
| 64 |