Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / IThumbnailFile.class.php
CommitLineData
59ab4d0f
MS
1<?php
2namespace wcf\data;
3
4/**
5 * Every database object representing a file supporting thumbnails should implement
6 * this interface.
7 *
8 * @author Matthias Schmidt
c839bd49 9 * @copyright 2001-2018 WoltLab GmbH
59ab4d0f 10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
e71525e4
MW
11 * @package WoltLabSuite\Core\Data
12 * @since 3.0
59ab4d0f
MS
13 */
14interface IThumbnailFile extends IFile {
15 /**
16 * Returns the link to the thumbnail file with the given size.
17 *
18 * @param string $size
592454d4 19 * @return string
59ab4d0f
MS
20 */
21 public function getThumbnailLink($size);
22
23 /**
24 * Returns the physical location of the thumbnail file with the given size.
25 *
26 * @param string $size
592454d4 27 * @return string
59ab4d0f
MS
28 */
29 public function getThumbnailLocation($size);
30
31 /**
32 * Returns the available thumbnail sizes.
33 *
34 * @return array
35 */
36 public static function getThumbnailSizes();
37}