2016-04-12 00:24:16 +02:00
|
|
|
<?php
|
|
|
|
|
2016-08-19 00:51:35 +02:00
|
|
|
namespace SilverStripe\Assets;
|
2016-04-12 00:24:16 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object which may have a thumbnail url
|
|
|
|
*/
|
2016-11-29 00:31:16 +01:00
|
|
|
interface Thumbnail
|
|
|
|
{
|
2016-04-12 00:24:16 +02:00
|
|
|
|
2016-11-29 00:31:16 +01:00
|
|
|
/**
|
|
|
|
* Get a thumbnail for this object
|
|
|
|
*
|
|
|
|
* @param int $width Preferred width of the thumbnail
|
|
|
|
* @param int $height Preferred height of the thumbnail
|
|
|
|
* @return string URL to the thumbnail, if available
|
|
|
|
*/
|
|
|
|
public function ThumbnailURL($width, $height);
|
2016-04-12 00:24:16 +02:00
|
|
|
}
|