Wrapper
class Wrapper
Stream wrapper class. This is the class that PHP uses as the stream operations handler.
Properties
$context |
Methods
Returns path stripped of url scheme (http://, ftp://, test:// etc.)
Returns Container object fished form defaultcontextoptions by scheme.
No description
No description
Opens stream in selected mode.
Writes data to stream.
Returns stat data for file inclusion. Currently disabled.
Returns file stat information
Reads and returns $bytes amount of bytes from stream.
Checks whether pointer has reached EOF.
Called in response to mkdir to create directory.
Called in response to chown/chgrp/touch/chmod etc.
Sets file pointer to specified position
Truncates file to given size
Renames/Moves file
Deletes file at given path
Removes directory
Opens directory for iteration
Closes opened dir
Returns next file url in directory
Resets directory iterator
No description
Details
at line 78
string
stripScheme(string $path)
Returns path stripped of url scheme (http://, ftp://, test:// etc.)
at line 93
Container
getContainerFromContext($path)
Returns Container object fished form defaultcontextoptions by scheme.
at line 106
int
stream_tell()
at line 116
void
stream_close()
at line 135
bool
stream_open(string $path, int $mode, int $options, $openedPath)
Opens stream in selected mode.
at line 236
int
stream_write($data)
Writes data to stream.
at line 255
bool
stream_stat()
Returns stat data for file inclusion. Currently disabled.
at line 269
array|bool
url_stat(string $path)
Returns file stat information
at line 296
string
stream_read(int $bytes)
Reads and returns $bytes amount of bytes from stream.
at line 315
bool
stream_eof()
Checks whether pointer has reached EOF.
at line 331
bool
mkdir(string $path, int $mode, int $options)
Called in response to mkdir to create directory.
at line 381
bool
stream_metadata(string $path, int $option, integer $value)
Called in response to chown/chgrp/touch/chmod etc.
at line 518
bool
stream_seek(int $offset, int $whence = SEEK_SET)
Sets file pointer to specified position
at line 542
bool
stream_truncate(int $newSize)
Truncates file to given size
at line 558
bool
rename(string $oldname, string $newname)
Renames/Moves file
at line 592
bool
unlink(int $path)
Deletes file at given path
at line 639
bool
rmdir(string $path)
Removes directory
at line 696
bool
dir_opendir(string $path)
Opens directory for iteration
at line 737
bool
dir_closedir()
Closes opened dir
at line 753
null
dir_readdir()
Returns next file url in directory
at line 767
dir_rewinddir()
Resets directory iterator