PHP 클래스 org\bovigo\vfs\vfsStreamWrapperRecordingProxy

부터: 0.10.0
상속: extends vfsStreamWrapper
파일 보기 프로젝트 열기: mikey179/vfsstream

보호된 프로퍼티들

프로퍼티 타입 설명
$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