You are here

public function MediaReadOnlyStreamWrapper::stream_read in D7 Media 7

Same name and namespace in other branches
  1. 7.4 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::stream_read()
  2. 7.2 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::stream_read()
  3. 7.3 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::stream_read()

Support for fread(), file_get_contents() etc.

Parameters

$count: Maximum number of bytes to be read.

Return value

The string that was read, or FALSE in case of an error.

Overrides StreamWrapperInterface::stream_read

File

includes/MediaReadOnlyStreamWrapper.inc, line 240

Class

MediaReadOnlyStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function stream_read($count) {
  return FALSE;
}