DrupalLocalStreamWrapper::stream_write
public function DrupalLocalStreamWrapper::stream_write
public DrupalLocalStreamWrapper::stream_write($data)
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 468
- 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!stream_wrappers.inc/function/DrupalLocalStreamWrapper::stream_write/7.x