Index
C
- $ Wrapper#context — Property in class Wrapper
R
- Wrapper::register() — Method in class Wrapper
Registers protocol 'nette.safe://'.
S
- Wrapper::stream_open() — Method in class Wrapper
Opens the file and acquires the appropriate lock (LOCK_SH for reading, LOCK_EX for writing).
- Wrapper::stream_close() — Method in class Wrapper
Releases the lock and closes the file. Truncates back to $startPos if a write error occurred.
- Wrapper::stream_read() — Method in class Wrapper
- Wrapper::stream_write() — Method in class Wrapper
Writes data to the file. Sets the write-error flag if fewer bytes than expected were written.
- Wrapper::stream_truncate() — Method in class Wrapper
Truncates a file to a given length.
- Wrapper::stream_tell() — Method in class Wrapper
Returns the position of the file.
- Wrapper::stream_eof() — Method in class Wrapper
Returns true if the file pointer is at end-of-file.
- Wrapper::stream_seek() — Method in class Wrapper
Sets the file position indicator for the file.
- Wrapper::stream_stat() — Method in class Wrapper
Gets information about a file referenced by $this->handle.
- Wrapper::stream_set_option() — Method in class Wrapper
Required since PHP 7.4 when the wrapper is used for includes; always returns false.
- SafeStream — Class in namespace Nette\Utils
U
- Wrapper::url_stat() — Method in class Wrapper
Returns file information for the given path. Not thread-safe.
- Wrapper::unlink() — Method in class Wrapper
Deletes a file. On Windows, fails if the file is currently open.
W
- Wrapper — Class in namespace Nette\SafeStream
Provides isolation for thread safe file manipulation using stream nette.safe://