You are here

function SmileyStreamWrapper::getExternalUrl in Smiley 7

Overrides getExternalUrl().

Return the HTML URI of a public file.

Overrides DrupalStreamWrapperInterface::getExternalUrl

File

includes/SmileyStreamWrapper.inc, line 25
smiley/includes/SmileyStreamWrapper.inc

Class

SmileyStreamWrapper
Create an instance like this: $smiley = new SmileyStreamWrapper('smiley://my-pack-pack/lol.gif');

Code

function getExternalUrl() {
  $path = str_replace('\\', '/', $this
    ->getTarget());
  return $GLOBALS['base_url'] . '/' . self::getDirectoryPath() . '/' . drupal_encode_path($path);
}