You are here

class StreamWrapper in AmazonS3 7.2

Same name in this branch
  1. 7.2 src/StreamWrapper.php \Drupal\amazons3\StreamWrapper
  2. 7.2 tests/Stub/StreamWrapper.php \Drupal\amazons3Test\Stub\StreamWrapper

Stub common and mimetype functions.

@class StreamWrapper @package Drupal\amazons3Test\Stub

Hierarchy

  • class \Drupal\amazons3\StreamWrapper extends \Aws\S3\StreamWrapper implements \Drupal\amazons3\DrupalStreamWrapperInterface uses \DrupalAdapter\Common, \DrupalAdapter\FileMimetypes

Expanded class hierarchy of StreamWrapper

1 file declares its use of StreamWrapper
StreamWrapperTest.php in tests/StreamWrapperTest.php

File

tests/Stub/StreamWrapper.php, line 14

Namespace

Drupal\amazons3Test\Stub
View source
class StreamWrapper extends \Drupal\amazons3\StreamWrapper {
  use Common;
  use FileMimetypes;

}

Members

Namesort descending Modifiers Type Description Overrides
Common::drupal_encode_path public static function
Common::url public static function
FileMimetypes::file_default_mimetype_mapping public static function Default MIME extension mapping.
FileMimetypes::file_mimetype_mapping public static function
StreamWrapper::$config protected property Configuration for this stream wrapper.
StreamWrapper::$defaultConfig protected static property Default configuration used when constructing a new stream wrapper.
StreamWrapper::$s3ClientClass protected static property The name of the S3Client class to use.
StreamWrapper::$s3Url protected property The URL associated with the S3 object.
StreamWrapper::$uri protected property Instance URI referenced as "s3://bucket/key"
StreamWrapper::chmod public function @codeCoverageIgnore
StreamWrapper::dirname public function
StreamWrapper::dir_opendir public function
StreamWrapper::forceDownload protected function Find if this URI should force a download.
StreamWrapper::getBasename public function Return the basename for this URI.
StreamWrapper::getClient public static function Get the client associated with this stream wrapper.
StreamWrapper::getCloudFrontUrl protected function Get a CloudFront URL for an S3 key.
StreamWrapper::getContentDispositionAttachment protected function Return a string to use as a Content-Disposition header.
StreamWrapper::getDefaultConfig public static function Return the default configuration.
StreamWrapper::getExternalUrl public function
StreamWrapper::getLocalPath protected function Return the local filesystem path.
StreamWrapper::getMimeType public static function
StreamWrapper::getOptions public function Override getOptions() to default all files to be publicly readable.
StreamWrapper::getS3Url protected function Get a regular S3 URL for a key.
StreamWrapper::getUri public function
StreamWrapper::injectCname protected function Replace the host in a URL with the configured domain.
StreamWrapper::mkdir public function
StreamWrapper::realpath public function @codeCoverageIgnore
StreamWrapper::register public static function Override register() to force using hook_stream_wrappers().
StreamWrapper::rename public function Override rename() to handle setting the URI on move.
StreamWrapper::rmdir public function
StreamWrapper::S3_API_DOMAIN constant The base domain of S3.
StreamWrapper::setClient public static function Set the client associated with this stream wrapper.
StreamWrapper::setDefaultConfig public static function Set default configuration to use when constructing a new stream wrapper.
StreamWrapper::setS3ClientClass public static function Set the name of the S3Client class to use.
StreamWrapper::setUri function
StreamWrapper::stream_lock public function Support for flock().
StreamWrapper::stream_open public function
StreamWrapper::stylesCallback constant The path to the image style generation callback.
StreamWrapper::unlink public function
StreamWrapper::url_stat public function
StreamWrapper::usePresigned protected function Find if the URL should be presigned.
StreamWrapper::useRrs protected function Find if the URL should be saved to Reduced Redundancy Storage.
StreamWrapper::useTorrent protected function Find if the URL should be returned as a torrent.
StreamWrapper::__construct public function Construct a new stream wrapper.