PHP Класс org\bovigo\vfs\vfsStreamWrapperRecordingProxy

С версии: 0.10.0
Наследование: extends vfsStreamWrapper
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$calledMethods array list of called methods for a stream
$path string currently opened path

Открытые методы

Метод Описание
dir_closedir ( ) : boolean closes directory
dir_opendir ( string $path, integer $options ) : boolean opens a directory
dir_readdir ( ) : string reads directory contents
dir_rewinddir ( ) : boolean reset directory iteration
getMethodCalls ( string $path ) : array returns recorded method calls for given path
mkdir ( string $path, integer $mode, integer $options ) : boolean creates a new directory
rename ( string $path_from, string $path_to ) : boolean rename from one path to another
rmdir ( string $path, integer $options ) : boolean removes a directory
setup ( string $rootDirName = 'root', integer $permissions = null ) : vfsStreamDirectory helper method for setting up vfsStream with the proxy
stream_cast ( integer $cast_as ) : boolean retrieve the underlaying resource
stream_close ( ) closes the stream
stream_eof ( ) : boolean checks whether stream is at end of file
stream_flush ( ) : boolean flushes unstored data into storage
stream_lock ( integer $operation ) : boolean set lock status for stream
stream_open ( string $path, string $mode, string $options, string $opened_path ) : boolean open the stream
stream_read ( integer $count ) : string read the stream up to $count bytes
stream_seek ( integer $offset, integer $whence ) : boolean seeks to the given offset
stream_stat ( ) : array returns status of stream
stream_tell ( ) : integer returns the current position of the stream
stream_write ( string $data ) : integer writes data into the stream
unlink ( string $path ) : boolean remove the data under the given path
url_stat ( string $path, integer $flags ) : array returns status of url

Защищенные методы

Метод Описание
recordMethodCall ( string $method, string $path ) records method call for given path

Описание методов

dir_closedir() публичный Метод

closes directory
public dir_closedir ( ) : boolean
Результат boolean

dir_opendir() публичный Метод

opens a directory
public dir_opendir ( string $path, integer $options ) : boolean
$path string
$options integer
Результат boolean

dir_readdir() публичный Метод

reads directory contents
public dir_readdir ( ) : string
Результат string

dir_rewinddir() публичный Метод

reset directory iteration
public dir_rewinddir ( ) : boolean
Результат boolean

getMethodCalls() публичный статический Метод

returns recorded method calls for given path
public static getMethodCalls ( string $path ) : array
$path string
Результат array

mkdir() публичный Метод

creates a new directory
public mkdir ( string $path, integer $mode, integer $options ) : boolean
$path string
$mode integer
$options integer
Результат boolean

recordMethodCall() защищенный статический Метод

records method call for given path
protected static recordMethodCall ( string $method, string $path )
$method string
$path string

rename() публичный Метод

rename from one path to another
public rename ( string $path_from, string $path_to ) : boolean
$path_from string
$path_to string
Результат boolean

rmdir() публичный Метод

removes a directory
public rmdir ( string $path, integer $options ) : boolean
$path string
$options integer
Результат boolean

setup() публичный статический Метод

helper method for setting up vfsStream with the proxy
public static setup ( string $rootDirName = 'root', integer $permissions = null ) : vfsStreamDirectory
$rootDirName string optional name of root directory
$permissions integer optional file permissions of root directory
Результат vfsStreamDirectory

stream_cast() публичный Метод

retrieve the underlaying resource
public stream_cast ( integer $cast_as ) : boolean
$cast_as integer
Результат boolean

stream_close() публичный Метод

closes the stream
public stream_close ( )

stream_eof() публичный Метод

checks whether stream is at end of file
public stream_eof ( ) : boolean
Результат boolean

stream_flush() публичный Метод

flushes unstored data into storage
public stream_flush ( ) : boolean
Результат boolean

stream_lock() публичный Метод

set lock status for stream
public stream_lock ( integer $operation ) : boolean
$operation integer
Результат boolean

stream_open() публичный Метод

open the stream
public stream_open ( string $path, string $mode, string $options, string $opened_path ) : boolean
$path string the path to open
$mode string mode for opening
$options string options for opening
$opened_path string full path that was actually opened
Результат boolean

stream_read() публичный Метод

read the stream up to $count bytes
public stream_read ( integer $count ) : string
$count integer amount of bytes to read
Результат string

stream_seek() публичный Метод

seeks to the given offset
public stream_seek ( integer $offset, integer $whence ) : boolean
$offset integer
$whence integer
Результат boolean

stream_stat() публичный Метод

returns status of stream
public stream_stat ( ) : array
Результат array

stream_tell() публичный Метод

returns the current position of the stream
public stream_tell ( ) : integer
Результат integer

stream_write() публичный Метод

writes data into the stream
public stream_write ( string $data ) : integer
$data string
Результат integer amount of bytes written

url_stat() публичный Метод

returns status of url
public url_stat ( string $path, integer $flags ) : array
$path string path of url to return status for
$flags integer flags set by the stream API
Результат array

Описание свойств

$calledMethods защищенное статическое свойство

list of called methods for a stream
protected static array $calledMethods
Результат array

$path защищенное свойство

currently opened path
protected string $path
Результат string