LocalReadOnlyStream::unlink

public LocalReadOnlyStream::unlink($uri) Support for unlink(). The file will not be deleted from the stream as this is a read-only stream wrapper. Parameters string $uri: A string containing the uri to the resource to delete. Return value bool TRUE so that file_delete() will remove db reference to file. File is not actually deleted. Overrides LocalStream::unlink See also http://php.net/manual/streamwrapper.unlink.php File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 140

LocalReadOnlyStream::stream_write

public LocalReadOnlyStream::stream_write($data) Support for fwrite(), file_put_contents() etc. Data will not be written as this is a read-only stream wrapper. Parameters string $data: The string to be written. Return value bool FALSE as data will not be written. Overrides LocalStream::stream_write See also http://php.net/manual/streamwrapper.stream-write.php File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 86 Class LocalReadOnlyStream Defines a read-only Drupal stre

LocalReadOnlyStream::stream_truncate

public LocalReadOnlyStream::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 LocalStream::stream_truncate File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 120 Class LocalReadOnlyStream Defines a read-only Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public function str

LocalReadOnlyStream::stream_open

public LocalReadOnlyStream::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 LocalStream::stream_o

LocalReadOnlyStream::stream_metadata

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

LocalReadOnlyStream::stream_lock

public LocalReadOnlyStream::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 added as a bitmask if you don't want flock() to block while locking (not supported on Windows). Return value bool Return FALSE for an exclusive

LocalReadOnlyStream::stream_flush

public LocalReadOnlyStream::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 LocalStream::stream_flush See also http://php.net/manual/streamwrapper.stream-flush.php File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 103 Class LocalReadOnlyStream Defines a read-o

LocalReadOnlyStream::rmdir

public LocalReadOnlyStream::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 LocalStream::rmdir See also http://php.net/manual/streamwrapper.rmdir.php File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 202 Cla

LocalReadOnlyStream::rename

public LocalReadOnlyStream::rename($from_uri, $to_uri) Support for rename(). The 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 LocalStream::rename See also http://php.net/manual/streamwrapper.rename.php File core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 160 Class LocalReadOnlyStream Define

LocalReadOnlyStream::mkdir

public LocalReadOnlyStream::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 LocalStream::mkdir See also http://php.net/manual/streamwrapper.mkdir.php Fil