protected function S3fsStream::_open_write_stream in S3 File System 8.2
Initialize the stream wrapper for a write only stream.
Parameters
array $params: An array of AWS SDK for PHP Command parameters.
array $errors: OUT parameter: all encountered errors are appended to this array.
2 calls to S3fsStream::_open_write_stream()
- S3fsStream::stream_open in src/
StreamWrapper/ S3fsStream.php - Support for fopen(), file_get_contents(), file_put_contents() etc.
- S3fsStream::_open_append_stream in src/
StreamWrapper/ S3fsStream.php - Initialize the stream wrapper for an append stream.
File
- src/
StreamWrapper/ S3fsStream.php, line 1469
Class
- S3fsStream
- Defines a Drupal s3fs (s3fs://) stream wrapper class.
Namespace
Drupal\s3fs\StreamWrapperCode
protected function _open_write_stream($params, &$errors) {
$this
->_debug("_open_write_stream({$params['Key']}) called.", TRUE);
$this->body = new Stream(fopen('php://temp', 'r+'));
return TRUE;
}