You are here

public function DrupalLocalStreamWrapper::stream_write in Drupal 7

Support for fwrite(), file_put_contents() etc.

Parameters

$data: The string to be written.

Return value

The number of bytes written (integer).

Overrides StreamWrapperInterface::stream_write

See also

http://php.net/manual/streamwrapper.stream-write.php

File

includes/stream_wrappers.inc, line 467
Drupal stream wrapper interface.

Class

DrupalLocalStreamWrapper
Drupal stream wrapper base class for local files.

Code

public function stream_write($data) {
  return fwrite($this->handle, $data);
}