-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathIThumbnailFile.class.php
More file actions
40 lines (36 loc) · 952 Bytes
/
IThumbnailFile.class.php
File metadata and controls
40 lines (36 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace wcf\data;
/**
* Every database object representing a file supporting thumbnails should implement
* this interface.
*
* @author Matthias Schmidt
* @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @since 3.0
*/
interface IThumbnailFile extends IFile
{
/**
* Returns the link to the thumbnail file with the given size.
*
* @return string
*/
public function getThumbnailLink(string $size);
/**
* Returns the physical location of the thumbnail file with the given size.
*
* @return string
*/
public function getThumbnailLocation(string $size);
/**
* Returns the available thumbnail sizes.
*
* @return array<string, array{
* height: int,
* retainDimensions: bool|int,
* width: int,
* }>
*/
public static function getThumbnailSizes();
}