You are here

protected function S3fsStreamWrapper::_get_params in S3 File System 7

Same name and namespace in other branches
  1. 7.2 S3fsStreamWrapper.inc \S3fsStreamWrapper::_get_params()

Get the Command parameters for the specified URI.

Parameters

string $uri: The URI of the file.

Return value

array A Command parameters array, including 'Bucket', 'Key', and context params.

6 calls to S3fsStreamWrapper::_get_params()
S3fsStreamWrapper::rename in ./S3fsStreamWrapper.inc
Support for rename().
S3fsStreamWrapper::rmdir in ./S3fsStreamWrapper.inc
Support for rmdir().
S3fsStreamWrapper::stream_open in ./S3fsStreamWrapper.inc
Support for fopen(), file_get_contents(), file_put_contents() etc.
S3fsStreamWrapper::unlink in ./S3fsStreamWrapper.inc
Support for unlink().
S3fsStreamWrapper::waitUntilFileExists in ./S3fsStreamWrapper.inc
Wait for the specified file to exist in the bucket.

... See full list

File

./S3fsStreamWrapper.inc, line 1296
Drupal stream wrapper implementation for S3 File System.

Class

S3fsStreamWrapper
The stream wrapper class.

Code

protected function _get_params($uri) {
  $params = $this
    ->_get_options();
  unset($params['seekable']);
  unset($params['throw_exceptions']);
  $params['Bucket'] = $this->config['bucket'];

  // Strip s3:// from the URI to get the S3 Key.
  $params['Key'] = $this
    ->_uri_to_s3_filename($uri);
  return $params;
}