class EmbedResource extends EmbedResource

deprecated 1.2..2.0 Use {@link \SilverStripe\View\Embed\EmbedResource} instead

Methods

__construct(string $url)

No description

int
getWidth()

Get width of this Embed

int
getHeight()

Get height of this Embed

string
getPreviewURL()

Get preview url

string
getName()

Get human readable name for this resource

string
getType()

Get Embed type

bool
validate()

Validate this resource

$this
setOptions(array $options)

No description

array
getOptions()

No description

$this
setDispatcher(DispatcherInterface $dispatcher)

No description

DispatcherInterface
getDispatcher()

No description

Adapter
getEmbed()

Returns a bootstrapped Embed object

Details

in EmbedResource at line 42
__construct(string $url)

Parameters

string $url @url

in EmbedResource at line 47
int getWidth()

Get width of this Embed

Return Value

int

in EmbedResource at line 52
int getHeight()

Get height of this Embed

Return Value

int

in EmbedResource at line 57
string getPreviewURL()

Get preview url

Return Value

string

in EmbedResource at line 80
string getName()

Get human readable name for this resource

Return Value

string

in EmbedResource at line 89
string getType()

Get Embed type

Return Value

string

in EmbedResource at line 94
bool validate()

Validate this resource

Return Value

bool

in EmbedResource at line 103
$this setOptions(array $options)

Parameters

array $options

Return Value

$this

in EmbedResource at line 112
array getOptions()

Return Value

array

in EmbedResource at line 121
$this setDispatcher(DispatcherInterface $dispatcher)

Parameters

DispatcherInterface $dispatcher

Return Value

$this

in EmbedResource at line 130
DispatcherInterface getDispatcher()

Return Value

DispatcherInterface

in EmbedResource at line 140
Adapter getEmbed()

Returns a bootstrapped Embed object

Return Value

Adapter