PHP 클래스 Phly\Http\Stream

상속: implements Psr\Http\Message\StreamableInterface
파일 보기 프로젝트 열기: phly/http 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$resource resource
$stream string | resource

공개 메소드들

메소드 설명
__construct ( string | resource $stream, string $mode = 'r' )
__toString ( )
attach ( string | resource $resource, string $mode = 'r' ) Attach a new stream/resource to the instance.
close ( )
detach ( )
eof ( )
getContents ( )
getMetadata ( $key = null )
getSize ( )
isReadable ( )
isSeekable ( )
isWritable ( )
read ( $length )
rewind ( )
seek ( $offset, $whence = SEEK_SET )
tell ( )
write ( $string )

메소드 상세

__construct() 공개 메소드

public __construct ( string | resource $stream, string $mode = 'r' )
$stream string | resource
$mode string Mode with which to open stream

__toString() 공개 메소드

public __toString ( )

attach() 공개 메소드

Attach a new stream/resource to the instance.
public attach ( string | resource $resource, string $mode = 'r' )
$resource string | resource
$mode string

close() 공개 메소드

public close ( )

detach() 공개 메소드

public detach ( )

eof() 공개 메소드

public eof ( )

getContents() 공개 메소드

public getContents ( )

getMetadata() 공개 메소드

public getMetadata ( $key = null )

getSize() 공개 메소드

public getSize ( )

isReadable() 공개 메소드

public isReadable ( )

isSeekable() 공개 메소드

public isSeekable ( )

isWritable() 공개 메소드

public isWritable ( )

read() 공개 메소드

public read ( $length )

rewind() 공개 메소드

public rewind ( )

seek() 공개 메소드

public seek ( $offset, $whence = SEEK_SET )

tell() 공개 메소드

public tell ( )

write() 공개 메소드

public write ( $string )

프로퍼티 상세

$resource 보호되어 있는 프로퍼티

protected resource $resource
리턴 resource

$stream 보호되어 있는 프로퍼티

protected string|resource $stream
리턴 string | resource