Метод | Описание | |
---|---|---|
cast ( integer $castType ) : resource | Retrieve the underlying resource. | |
close ( ) : void | Close an resource. | |
closeDirectory ( ) : boolean | Close directory handle. | |
flush ( ) : boolean | Flushes the output. | |
getScheme ( ) : string | Returns the scheme ("protocol") this wrapper handles. | |
isAtEof ( ) : boolean | Tests for end-of-file on a file pointer. | |
lock ( integer $operation ) : boolean | Advisory file locking. | |
makeDirectory ( string $path, integer $mode, integer $options ) : boolean | Create a directory. | |
open ( string $path, string $mode, integer $options, &$openedPathAndFilename ) : boolean | Opens file or URL. | |
openDirectory ( string $path, integer $options ) : boolean | Open directory handle. | |
pathStat ( string $path, integer $flags ) : array | Retrieve information about a file. | |
read ( integer $count ) : string | Read from stream. | |
readDirectory ( ) : string | Read entry from directory handle. | |
removeDirectory ( string $path, integer $options ) : boolean | Removes a directory. | |
rename ( string $source, string $target ) : boolean | Renames a file or directory. | |
resourceStat ( ) : array | Retrieve information about a file resource. | |
rewindDirectory ( ) : boolean | Rewind directory handle. | |
seek ( integer $offset, integer $whence = SEEK_SET ) : boolean | Seeks to specific location in a stream. | |
setOption ( integer $option, integer $argument1, integer $argument2 ) : boolean | Change stream options. | |
tell ( ) : integer | Retrieve the current position of a stream. | |
unlink ( string $path ) : boolean | Delete a file. | |
unlock ( ) : boolean | Advisory file locking. | |
write ( string $data ) : integer | Write to stream. |
public cast ( integer $castType ) : resource | ||
$castType | integer | Can be STREAM_CAST_FOR_SELECT when stream_select() is calling stream_cast() or STREAM_CAST_AS_STREAM when stream_cast() is called for other uses. |
Результат | resource | Should return the underlying stream resource used by the wrapper, or FALSE. |
public closeDirectory ( ) : boolean | ||
Результат | boolean | TRUE on success or FALSE on failure. |
public makeDirectory ( string $path, integer $mode, integer $options ) : boolean | ||
$path | string | Directory which should be created. |
$mode | integer | The value passed to mkdir(). |
$options | integer | A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE. |
Результат | boolean | TRUE on success or FALSE on failure. |
public open ( string $path, string $mode, integer $options, &$openedPathAndFilename ) : 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. |
Результат | boolean | TRUE on success or FALSE on failure. |
public pathStat ( 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. |
Результат | array | Should return as many elements as stat() does. Unknown or unavailable values should be set to a rational value (usually 0). |
public readDirectory ( ) : string | ||
Результат | string | Should return string representing the next filename, or FALSE if there is no next file. |
public resourceStat ( ) : array | ||
Результат | array | See http://php.net/stat |
public rewindDirectory ( ) : boolean | ||
Результат | boolean | TRUE on success or FALSE on failure. |