You are here

protected function DrupalAltStreamWrapper::getLocalPath in Alternative Stream Wrappers 7

Overrides getLocalPath().

Overrides DrupalLocalStreamWrapper::getLocalPath

File

./alt_stream_wrappers.module, line 60
Provides one or more configurable alternative stream wrappers for file storage.

Class

DrupalAltStreamWrapper
Drupal alternative stream wrapper class.

Code

protected function getLocalPath($uri = NULL) {
  if (empty($this->uri) && !empty($uri)) {

    // sometimes necessary for the file_uri_scheme and variable_get
    //  in DrupalAltStreamWrapper's getDirectoryPath method to work
    //  when called from parent::getLocalPath
    $this->uri = $uri;
  }
  return parent::getLocalPath($uri);
}