Methods |
public
|
__construct()
Constructs a new stream wrapper
Constructs a new stream wrapper
Called when opening the stream wrapper, right before
{@see StreamWrapper::stream_open()}.
Implements
|
#
|
public
|
stream_metadata(string $path, int $option, $value): bool
Change stream metadata
Change stream metadata
This method is called to set metadata on the stream. It is called when
one of the following functions is called on a stream URL:
- {@see touch()}
- {@see chmod()}
- {@see chown()}
- {@see chgrp()}
Parameters
$path |
The file path or URL to set metadata. Note that in
the case of a URL, it must be a :// delimited URL. Other URL forms are
not supported.
|
$option |
One of:
|
$value |
If option is
|
Returns
true on success or false on failure. If option is
not implemented, false should be returned.
Implements
|
#
|
public
|
stream_set_option(int $option, int $arg1, int $arg2): bool
Change stream options
Parameters
$option |
One of:
|
$arg1 |
If option is
|
$arg2 |
If option is
|
Returns
true on success or false on failure. If option is
not implemented, false should be returned.
Implements
|
#
|
public
|
stream_stat()
Retrieve information about a file resource
Retrieve information about a file resource
This method is called in response to {@see fstat()}.
Implements
|
#
|
public
|
url_stat(string $path, int $flags)
Retrieve information about a file
Retrieve information about a file
This method is called in response to all {@see stat()} related functions.
Parameters
$path |
The file path or URL to stat. Note that in the case
of a URL, it must be a :// delimited URL. Other URL forms are not
supported.
|
$flags |
Holds additional flags set by the streams API. It can
hold one or more of the following values OR'd together.
|
Returns
false on failure, otherwise an array with the
same elements returned by {@see stat()}. Unknown or unavailable values
should be set to a rational value (usually 0 ). Special attention should
be paid to mode as documented under {@see stat()}.
Implements
|
#
|
protected
|
buildStat(array{int, int, int, int, int, int, int, int, int, int, int, int, int} $stat): array<int>
|
#
|