프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$context | resource | The stream context if set |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$bufferFactory | TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface | The buffer factory | |
$contextOptions | array | The parsed stream context options | |
$contextParameters | array | The parsed stream context parameters | |
$dirBuffer | The directory buffer if used on a directory | ||
$fileBuffer | TQ\Vcs\Buffer\FileBufferInterface | The file buffer if used on a file | |
$path | TQ\Vcs\StreamWrapper\PathInformationInterface | The opened path | |
$pathFactory | PathFactoryInterface | The path factory | |
$protocol | string | The registered protocol |
메소드 | 설명 | |
---|---|---|
dir_closedir ( ) : boolean | streamWrapper::dir_closedir — Close directory handle | |
dir_opendir ( string $path, integer $options ) : boolean | streamWrapper::dir_opendir — Open directory handle | |
dir_readdir ( ) : string | false | streamWrapper::dir_readdir — Read entry from directory handle | |
dir_rewinddir ( ) : boolean | streamWrapper::dir_rewinddir — Rewind directory handle | |
getRepositoryRegistry ( ) : |
Returns the repository registry | |
mkdir ( string $path, integer $mode, integer $options ) : boolean | streamWrapper::mkdir — Create a directory | |
rename ( string $path_from, string $path_to ) : boolean | streamWrapper::rename — Renames a file or directory | |
rmdir ( string $path, integer $options ) : boolean | streamWrapper::rmdir — Removes a directory | |
stream_close ( ) | streamWrapper::stream_close — Close an resource | |
stream_eof ( ) : boolean | streamWrapper::stream_eof — Tests for end-of-file on a file pointer | |
stream_flush ( ) : boolean | streamWrapper::stream_flush — Flushes the output | |
stream_open ( string $path, string $mode, integer $options, string &$opened_path ) : boolean | streamWrapper::stream_open — Opens file or URL | |
stream_read ( integer $count ) : string | streamWrapper::stream_read — Read from stream | |
stream_seek ( integer $offset, integer $whence = SEEK_SET ) : boolean | streamWrapper::stream_seek — Seeks to specific location in a stream | |
stream_stat ( ) : array | streamWrapper::stream_stat — Retrieve information about a file resource | |
stream_tell ( ) : integer | streamWrapper::stream_tell — Retrieve the current position of a stream | |
stream_write ( string $data ) : integer | streamWrapper::stream_write — Write to stream | |
unlink ( string $path ) : boolean | streamWrapper::unlink — Delete a file | |
unregister ( ) | Unregisters the stream wrapper | |
url_stat ( string $path, integer $flags ) : array | streamWrapper::url_stat — Retrieve information about a file |
메소드 | 설명 | |
---|---|---|
doRegister ( string $protocol, PathFactoryInterface $pathFactory, TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface $bufferFactory ) | Registers the stream wrapper with the given protocol | |
getBufferFactory ( ) : TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface | Creates the buffer factory | |
getContextOption ( string $option, mixed $default = null ) : mixed | Returns a context option - $default if option is not found | |
getContextOptions ( boolean $all = false ) : array | Parses the passed stream context and returns the context options relevant for this stream wrapper | |
getContextParameter ( string $parameter, mixed $default = null ) : mixed | Returns a context parameter - $default if parameter is not found | |
getContextParameters ( ) : array | Parses the passed stream context and returns the context parameters | |
getPath ( string $streamUrl ) : TQ\Vcs\StreamWrapper\PathInformationInterface | Returns the path information for a given stream URL | |
maskHasFlag ( integer $mask, integer $flag ) : boolean | Checks if a bitmask has a specific flag set |
public dir_closedir ( ) : boolean | ||
리턴 | boolean | Returns TRUE on success or FALSE on failure. |
public dir_readdir ( ) : string | false | ||
리턴 | string | false | Should return string representing the next filename, or FALSE if there is no next file. |
public dir_rewinddir ( ) : boolean | ||
리턴 | boolean | Returns TRUE on success or FALSE on failure. |
protected static doRegister ( string $protocol, PathFactoryInterface $pathFactory, TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface $bufferFactory ) | ||
$protocol | string | The protocol (such as "vcs") |
$pathFactory | PathFactoryInterface | The path factory |
$bufferFactory | TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface | The buffer factory |
protected getBufferFactory ( ) : TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface | ||
리턴 | TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface |
protected getContextOptions ( boolean $all = false ) : array | ||
$all | boolean | Return all options instead of just the relevant options |
리턴 | array | The context options |
protected getContextParameters ( ) : array | ||
리턴 | array | The context parameters |
public static getRepositoryRegistry ( ) : |
||
리턴 |
public mkdir ( string $path, integer $mode, integer $options ) : boolean | ||
$path | string | Directory which should be created. |
$mode | integer | The value passed to {@see \mkdir()}. |
$options | integer | A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE. |
리턴 | boolean | Returns TRUE on success or FALSE on failure. |
public stream_eof ( ) : boolean | ||
리턴 | boolean | Should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise. |
public stream_flush ( ) : boolean | ||
리턴 | boolean | Should return TRUE if the cached data was successfully stored (or if there was no data to store), or FALSE if the data could not be stored. |
public stream_open ( string $path, string $mode, integer $options, string &$opened_path ) : boolean | ||
$path | string | Specifies the URL that was passed to the original function. |
$mode | string | The mode used to open the file, as detailed for fopen(). |
$options | integer | Holds additional flags set by the streams API. It can hold one or more of the following values OR'd together. STREAM_USE_PATH If path is relative, search for the resource using the include_path. STREAM_REPORT_ERRORS If this flag is set, you are responsible for raising errors using trigger_error() during opening of the stream. If this flag is not set, you should not raise any errors. |
$opened_path | string | If the path is opened successfully, and STREAM_USE_PATH is set in options, opened_path should be set to the full path of the file/resource that was actually opened. |
리턴 | boolean | Returns TRUE on success or FALSE on failure. |
public stream_read ( integer $count ) : string | ||
$count | integer | How many bytes of data from the current position should be returned. |
리턴 | string | If there are less than count bytes available, return as many as are available. If no more data is available, return either FALSE or an empty string. |
public stream_seek ( integer $offset, integer $whence = SEEK_SET ) : boolean | ||
$offset | integer | The stream offset to seek to. |
$whence | integer | Possible values: SEEK_SET - Set position equal to offset bytes. SEEK_CUR - Set position to current location plus offset. SEEK_END - Set position to end-of-file plus offset. |
리턴 | boolean | Return TRUE if the position was updated, FALSE otherwise. |
public stream_stat ( ) : array | ||
리턴 | array | stat() and fstat() result format Numeric Associative (since PHP 4.0.6) Description 0 dev device number 1 ino inode number * 2 mode inode protection mode 3 nlink number of links 4 uid userid of owner * 5 gid groupid of owner * 6 rdev device type, if inode device 7 size size in bytes 8 atime time of last access (Unix timestamp) 9 mtime time of last modification (Unix timestamp) 10 ctime time of last inode change (Unix timestamp) 11 blksize blocksize of filesystem IO ** 12 blocks number of 512-byte blocks allocated ** * On Windows this will always be 0. ** Only valid on systems supporting the st_blksize type - other systems (e.g. Windows) return -1. |
public stream_tell ( ) : integer | ||
리턴 | integer | Should return the current position of the stream. |
public stream_write ( string $data ) : integer | ||
$data | string | Should be stored into the underlying stream. |
리턴 | integer | Should return the number of bytes that were successfully stored, or 0 if none could be stored. |
public url_stat ( string $path, integer $flags ) : array | ||
$path | string | 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 | integer | Holds additional flags set by the streams API. It can hold one or more of the following values OR'd together. STREAM_URL_STAT_LINK For resources with the ability to link to other resource (such as an HTTP Location: forward, or a filesystem symlink). This flag specified that only information about the link itself should be returned, not the resource pointed to by the link. This flag is set in response to calls to lstat(), is_link(), or filetype(). STREAM_URL_STAT_QUIET If this flag is set, your wrapper should not raise any errors. If this flag is not set, you are responsible for reporting errors using the trigger_error() function during stating of the path. |
리턴 | array | Should return as many elements as stat() does. Unknown or unavailable values should be set to a rational value (usually 0). |
protected static FactoryInterface,TQ\Vcs\StreamWrapper\FileBuffer $bufferFactory | ||
리턴 | TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface |
protected array $contextOptions | ||
리턴 | array |
protected array $contextParameters | ||
리턴 | array |
protected ArrayBuffer,TQ\Vcs\Buffer $dirBuffer | ||
리턴 |
protected FileBufferInterface,TQ\Vcs\Buffer $fileBuffer | ||
리턴 | TQ\Vcs\Buffer\FileBufferInterface |
protected PathInformationInterface,TQ\Vcs\StreamWrapper $path | ||
리턴 | TQ\Vcs\StreamWrapper\PathInformationInterface |
protected static PathFactoryInterface $pathFactory | ||
리턴 | PathFactoryInterface |