ReadOnlyStream::stream_truncate

public ReadOnlyStream::stream_truncate($new_size) Truncate stream. Will respond to truncation; e.g., through ftruncate(). Parameters int $new_size: The new size. Return value bool TRUE on success, FALSE otherwise. Overrides PhpStreamWrapperInterface::stream_truncate File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 172 Class ReadOnlyStream Defines a read-only Drupal stream wrapper base class. Namespace Drupal\Core\StreamWrapper Code public function stream_truncate($new

ReadOnlyStream::stream_open

public ReadOnlyStream::stream_open($uri, $mode, $options, &$opened_path) Support for fopen(), file_get_contents(), etc. Any write modes will be rejected, as this is a read-only stream wrapper. Parameters string $uri: A string containing the URI to the file to open. int $mode: The file mode, only strict readonly modes are supported. 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 TRUE

ReadOnlyStream::stream_metadata

public ReadOnlyStream::stream_metadata($uri, $option, $value) Does not change meta data as this is a read-only stream wrapper. Overrides PhpStreamWrapperInterface::stream_metadata File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 164 Class ReadOnlyStream Defines a read-only Drupal stream wrapper base class. Namespace Drupal\Core\StreamWrapper Code public function stream_metadata($uri, $option, $value) { trigger_error('stream_metadata() not supported for read-only stre

ReadOnlyStream::stream_lock

public ReadOnlyStream::stream_lock($operation) Support for flock(). An exclusive lock attempt will be rejected, as this is a read-only stream wrapper. 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 Return FALSE for an exclusive lock (writer), as this

ReadOnlyStream::stream_flush

public ReadOnlyStream::stream_flush() Support for fflush(). Nothing will be output to the file, as this is a read-only stream wrapper. However as stream_flush is called during stream_close we should not trigger an error. Return value bool FALSE, as no data will be stored. Overrides PhpStreamWrapperInterface::stream_flush See also http://php.net/manual/streamwrapper.stream-flush.php File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 155 Class ReadOnlyStream Defines a read-on

ReadOnlyStream::setUri

ReadOnlyStream::setUri($uri) Sets the absolute stream resource URI. This allows you to set the URI. Generally is only called by the factory method. Parameters string $uri: A string containing the URI that should be used for this instance. Overrides StreamWrapperInterface::setUri File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 42 Class ReadOnlyStream Defines a read-only Drupal stream wrapper base class. Namespace Drupal\Core\StreamWrapper Code function setUri($uri) {

ReadOnlyStream::rmdir

public ReadOnlyStream::rmdir($uri, $options) Support for rmdir(). Directory will never be deleted as this is a read-only stream wrapper. Parameters string $uri: A string containing the URI to the directory to delete. int $options: A bit mask of STREAM_REPORT_ERRORS. Return value bool FALSE as directory will never be deleted. Overrides PhpStreamWrapperInterface::rmdir See also http://php.net/manual/streamwrapper.rmdir.php File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 254

ReadOnlyStream::rename

public ReadOnlyStream::rename($from_uri, $to_uri) Support for rename(). This file will not be renamed as this is a read-only stream wrapper. Parameters string $from_uri,: The uri to the file to rename. string $to_uri: The new uri for file. Return value bool FALSE as file will never be renamed. Overrides PhpStreamWrapperInterface::rename See also http://php.net/manual/streamwrapper.rename.php File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 212 Class ReadOnlyStream Define

ReadOnlyStream::mkdir

public ReadOnlyStream::mkdir($uri, $mode, $options) Support for mkdir(). Directory will never be created as this is a read-only stream wrapper. Parameters string $uri: A string containing the URI to the directory to create. int $mode: Permission flags - see mkdir(). int $options: A bit mask of STREAM_REPORT_ERRORS and STREAM_MKDIR_RECURSIVE. Return value bool FALSE as directory will never be created. Overrides PhpStreamWrapperInterface::mkdir See also http://php.net/manual/streamwrapper.mkdi

ReadOnlyStream::getUri

ReadOnlyStream::getUri() Returns the stream resource URI. Return value string Returns the current URI of the instance. Overrides StreamWrapperInterface::getUri File core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 49 Class ReadOnlyStream Defines a read-only Drupal stream wrapper base class. Namespace Drupal\Core\StreamWrapper Code function getUri() { return $this->uri; }