public function vfsStreamWrapper::stream_write in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php \org\bovigo\vfs\vfsStreamWrapper::stream_write()
writes data into the stream
Parameters
string $data:
Return value
int amount of bytes written
1 call to vfsStreamWrapper::stream_write()
- vfsStreamWrapperRecordingProxy::stream_write in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ proxy/ vfsStreamWrapperRecordingProxy.php - writes data into the stream
1 method overrides vfsStreamWrapper::stream_write()
- vfsStreamWrapperRecordingProxy::stream_write in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ proxy/ vfsStreamWrapperRecordingProxy.php - writes data into the stream
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php, line 444
Class
- vfsStreamWrapper
- Stream wrapper to mock file system requests.
Namespace
org\bovigo\vfsCode
public function stream_write($data) {
if (self::READONLY === $this->mode) {
return 0;
}
if ($this->content
->isWritable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()) === false) {
return 0;
}
if (self::$quota
->isLimited()) {
$data = substr($data, 0, self::$quota
->spaceLeft(self::$root
->sizeSummarized()));
}
return $this->content
->write($data);
}