PHP 클래스 TestPhpInputStream

저자: Jaroslav Hanslík
파일 보기 프로젝트 열기: jyxo/php 1 사용 예제들

공개 메소드들

메소드 설명
register ( ) : boolean Registers protocol.
setContent ( string $content ) Sets content.
stream_close ( ) : boolean Closes file.
stream_eof ( ) : boolean Determines if we have reached the end of the file.
stream_open ( string $path, string $mode, integer $options, string &$openedPath ) : boolean Opens file.
stream_read ( integer $length ) : string Reads from file.
stream_stat ( ) : array Returns information about the file.
unregister ( ) : boolean Unregisters protocol.

메소드 상세

register() 공개 정적인 메소드

Registers protocol.
public static register ( ) : boolean
리턴 boolean

setContent() 공개 정적인 메소드

Sets content.
public static setContent ( string $content )
$content string Content

stream_close() 공개 메소드

Closes file.
public stream_close ( ) : boolean
리턴 boolean

stream_eof() 공개 메소드

Determines if we have reached the end of the file.
public stream_eof ( ) : boolean
리턴 boolean

stream_open() 공개 메소드

Opens file.
public stream_open ( string $path, string $mode, integer $options, string &$openedPath ) : boolean
$path string File path
$mode string File mode
$options integer Options
$openedPath string Opened path
리턴 boolean

stream_read() 공개 메소드

Reads from file.
public stream_read ( integer $length ) : string
$length integer Read length
리턴 string

stream_stat() 공개 메소드

Returns information about the file.
public stream_stat ( ) : array
리턴 array

unregister() 공개 정적인 메소드

Unregisters protocol.
public static unregister ( ) : boolean
리턴 boolean