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 81
string
stripScheme(string $path)
Returns path stripped of url scheme (http://, ftp://, test:// etc.)
at line 96
Container
getContainerFromContext($path)
Returns Container object fished form defaultcontextoptions by scheme.
at line 109
int
stream_tell()
at line 119
void
stream_close()
at line 138
bool
stream_open(string $path, int $mode, int $options, $openedPath)
Opens stream in selected mode.
at line 239
false|integer
stream_write($data)
Writes data to stream.
at line 258
bool
stream_stat()
Returns stat data for file inclusion. Currently disabled.
at line 272
array|false
url_stat(string $path)
Returns file stat information
at line 300
string|null
stream_read(int $bytes)
Reads and returns $bytes amount of bytes from stream.
at line 319
bool
stream_eof()
Checks whether pointer has reached EOF.
at line 335
bool
mkdir(string $path, int $mode, int $options)
Called in response to mkdir to create directory.
at line 385
bool
stream_metadata(string $path, int $option, integer $value)
Called in response to chown/chgrp/touch/chmod etc.
at line 522
bool
stream_seek(int $offset, int $whence = SEEK_SET)
Sets file pointer to specified position
at line 546
bool
stream_truncate(int $newSize)
Truncates file to given size
at line 562
bool
rename(string $oldname, string $newname)
Renames/Moves file
at line 596
bool
unlink(int $path)
Deletes file at given path
at line 643
bool
rmdir(string $path)
Removes directory
at line 700
bool
dir_opendir(string $path)
Opens directory for iteration
at line 741
bool
dir_closedir()
Closes opened dir
at line 757
null
dir_readdir()
Returns next file url in directory
at line 771
dir_rewinddir()
Resets directory iterator