mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
54 lines
800 B
PHP
54 lines
800 B
PHP
<?php
|
|
|
|
namespace SilverStripe\View\Embed;
|
|
|
|
/**
|
|
* Abstract interface for an embeddable resource
|
|
*
|
|
* @see EmbedResource
|
|
*/
|
|
interface Embeddable
|
|
{
|
|
/**
|
|
* Get width of this Embed
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getWidth();
|
|
|
|
/**
|
|
* Get height of this Embed
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getHeight();
|
|
|
|
/**
|
|
* Get preview url
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPreviewURL();
|
|
|
|
/**
|
|
* Get human readable name for this resource
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName();
|
|
|
|
/**
|
|
* Get Embed type
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getType();
|
|
|
|
/**
|
|
* Validate this resource
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function validate();
|
|
}
|