Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
2 / 2
PreviewPublicController
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
2 / 2
 getThumbnails
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getPreview
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
/**
 * Gallery
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Olivier Paroz <galleryapps@oparoz.com>
 *
 * @copyright Olivier Paroz 2014-2016
 */
namespace OCA\Gallery\Controller;
/**
 * Class PreviewPublicController
 *
 * 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 PreviewPublicController extends PreviewController {
    /**
     * @PublicPage
     * @UseSession
     *
     * Generates thumbnails for public galleries
     *
     * The session needs to be maintained open or previews can't be generated
     * for files located on encrypted storage
     *
     * @inheritDoc
     *
     * @param string $ids the ID of the files of which we need thumbnail previews of
     * @param bool $square
     * @param float $scale
     */
    public function getThumbnails($ids, $square, $scale) {
        return parent::getThumbnails($ids, $square, $scale);
    }
    /**
     * @PublicPage
     * @UseSession
     *
     * Shows a large preview of a file
     *
     * The session needs to be maintained open or previews can't be generated
     * for files located on encrypted storage
     *
     * @inheritDoc
     *
     * @param int $fileId the ID of the file of which we need a large preview of
     * @param int $width
     * @param int $height
     */
    public function getPreview($fileId, $width, $height) {
        return parent::getPreview($fileId, $width, $height);
    }
}