You are here

public function OEmbedStreamWrapper::getExternalUrl in oEmbed 7

Same name and namespace in other branches
  1. 7.0 OEmbedStreamWrapper.inc \OEmbedStreamWrapper::getExternalUrl()

Returns a web accessible URL for the resource.

This function should return a URL that can be embedded in a web page and accessed from a browser. For example, the external URL of "youtube://xIpLd0WQKCY" might be "http://www.youtube.com/watch?v=xIpLd0WQKCY".

Return value

string Returns a string containing a web accessible URL for the resource.

Overrides DrupalStreamWrapperInterface::getExternalUrl

2 calls to OEmbedStreamWrapper::getExternalUrl()
OEmbedStreamWrapper::realpath in ./OEmbedStreamWrapper.inc
Base implementation of realpath().
OEmbedStreamWrapper::stream_open in ./OEmbedStreamWrapper.inc
Support for fopen(), file_get_contents(), file_put_contents() etc.

File

./OEmbedStreamWrapper.inc, line 125
Create a oEmbed Stream Wrapper class.

Class

OEmbedStreamWrapper
@file Create a oEmbed Stream Wrapper class.

Code

public function getExternalUrl() {
  return rawurldecode(substr($this
    ->getUri(), 9));
}