class EmbedResource extends EmbedResource (View source)

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

__construct(string $url)

Parameters

string $url

int getWidth()

Get width of this Embed

Return Value

int

int getHeight()

Get height of this Embed

Return Value

int

string getPreviewURL()

Get preview url

Return Value

string

string getName()

Get human readable name for this resource

Return Value

string

string getType()

Get Embed type

Return Value

string

bool validate()

Validate this resource

Return Value

bool

$this setOptions(array $options)

Parameters

array $options

Return Value

$this

array getOptions()

Return Value

array

$this setDispatcher(DispatcherInterface $dispatcher)

Parameters

DispatcherInterface $dispatcher

Return Value

$this

DispatcherInterface getDispatcher()

Return Value

DispatcherInterface

Adapter getEmbed()

Returns a bootstrapped Embed object

Return Value

Adapter