public function ResourceStreamWrapper::stream_write in D7 Media 6
Support for fwrite(), file_put_contents() etc.
Parameters
$data: The string to be written.
Return value
The number of bytes written.
Overrides StreamWrapperInterface::stream_write
File
- resource/
ResourceStreamWrapper.inc, line 142
Class
- ResourceStreamWrapper
- A base class for Resource Stream Wrappers.
Code
public function stream_write($data) {
resource_debug("stream_write: {$this->handle}");
return fwrite($this->handle, $data);
}