public function S3fsStreamWrapper::stream_cast in S3 File System 7.2
Same name and namespace in other branches
- 7 S3fsStreamWrapper.inc \S3fsStreamWrapper::stream_cast()
Cast the stream to return the underlying file resource
Parameters
int $cast_as: STREAM_CAST_FOR_SELECT or STREAM_CAST_AS_STREAM
Return value
resource
File
- ./
S3fsStreamWrapper.inc, line 843 - Drupal stream wrapper implementation for S3 File System.
Class
- S3fsStreamWrapper
- The stream wrapper class.
Code
public function stream_cast($cast_as) {
$this
->_debug("stream_cast({$cast_as}) called.");
return $this->body
->getStream();
}