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