LocalStream::stream_set_option

public LocalStream::stream_set_option($option, $arg1, $arg2) Since Windows systems do not allow it and it is not needed for most use cases anyway, this method is not supported on local files and will trigger an error and return false. If needed, custom subclasses can provide OS-specific implementations for advanced use cases. Overrides PhpStreamWrapperInterface::stream_set_option File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 352 Class LocalStream Defines a Drupal stream wr

LocalStream::stream_seek

public LocalStream::stream_seek($offset, $whence = SEEK_SET) Seeks to specific location in a stream. This method is called in response to fseek(). The read/write position of the stream should be updated according to the offset and whence. Parameters int $offset: The byte offset to seek to. int $whence: Possible values: SEEK_SET: Set position equal to offset bytes. SEEK_CUR: Set position to current location plus offset. SEEK_END: Set position to end-of-file plus offset. Defaults to SEEK_SE

LocalStream::stream_read

public LocalStream::stream_read($count) Support for fread(), file_get_contents() etc. Parameters int $count: Maximum number of bytes to be read. Return value string|bool The string that was read, or FALSE in case of an error. Overrides PhpStreamWrapperInterface::stream_read See also http://php.net/manual/streamwrapper.stream-read.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 210 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace

LocalStream::stream_open

public LocalStream::stream_open($uri, $mode, $options, &$opened_path) Support for fopen(), file_get_contents(), file_put_contents() etc. Parameters string $uri: A string containing the URI to the file to open. int $mode: The file mode ("r", "wb" etc.). int $options: A bit mask of STREAM_USE_PATH and STREAM_REPORT_ERRORS. string $opened_path: A string containing the path actually opened. Return value bool Returns TRUE if file was opened successfully. Overrides PhpStreamWrapperInterface::st

LocalStream::stream_metadata

public LocalStream::stream_metadata($uri, $option, $value) Sets metadata on the stream. Parameters string $path: A string containing the URI to the file to set metadata on. int $option: One of: STREAM_META_TOUCH: The method was called in response to touch(). STREAM_META_OWNER_NAME: The method was called in response to chown() with string parameter. STREAM_META_OWNER: The method was called in response to chown(). STREAM_META_GROUP_NAME: The method was called in response to chgrp(). STREAM_

LocalStream::stream_lock

public LocalStream::stream_lock($operation) Support for flock(). Parameters int $operation: One of the following: LOCK_SH to acquire a shared lock (reader). LOCK_EX to acquire an exclusive lock (writer). LOCK_UN to release a lock (shared or exclusive). LOCK_NB if you don't want flock() to block while locking (not supported on Windows). Return value bool Always returns TRUE at the present time. Overrides PhpStreamWrapperInterface::stream_lock See also http://php.net/manual/streamwrapper.str

LocalStream::stream_flush

public LocalStream::stream_flush() Support for fflush(). Return value bool TRUE if data was successfully stored (or there was no data to store). Overrides PhpStreamWrapperInterface::stream_flush See also http://php.net/manual/streamwrapper.stream-flush.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 258 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function stream_flush() { return fflu

LocalStream::stream_eof

public LocalStream::stream_eof() Support for feof(). Return value bool TRUE if end-of-file has been reached. Overrides PhpStreamWrapperInterface::stream_eof See also http://php.net/manual/streamwrapper.stream-eof.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 237 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function stream_eof() { return feof($this->handle); }

LocalStream::stream_close

public LocalStream::stream_close() Support for fclose(). Return value bool TRUE if stream was successfully closed. Overrides PhpStreamWrapperInterface::stream_close See also http://php.net/manual/streamwrapper.stream-close.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 295 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function stream_close() { return fclose($this->handle); }

LocalStream::stream_cast

public LocalStream::stream_cast($cast_as) Retrieve the underlying stream resource. This method is called in response to stream_select(). Parameters int $cast_as: Can be STREAM_CAST_FOR_SELECT when stream_select() is calling stream_cast() or STREAM_CAST_AS_STREAM when stream_cast() is called for other uses. Return value resource|false The underlying stream resource or FALSE if stream_select() is not supported. Overrides PhpStreamWrapperInterface::stream_cast See also stream_select() http://ph