PHP 인터페이스 org\bovigo\vfs\content\FileContent

부터: 1.3.0
파일 보기 프로젝트 열기: mikey179/vfsstream

공개 메소드들

메소드 설명
content ( ) : string returns actual content
eof ( ) : boolean checks whether pointer is at end of file
read ( integer $count ) : string reads the given amount of bytes from content
seek ( integer $offset, integer $whence ) : boolean seeks to the given offset
size ( ) : integer returns size of content
truncate ( integer $size ) : boolean Truncates a file to a given length
write ( string $data ) : amount writes an amount of data

메소드 상세

content() 공개 메소드

returns actual content
public content ( ) : string
리턴 string

eof() 공개 메소드

checks whether pointer is at end of file
public eof ( ) : boolean
리턴 boolean

read() 공개 메소드

reads the given amount of bytes from content
public read ( integer $count ) : string
$count integer
리턴 string

seek() 공개 메소드

seeks to the given offset
public seek ( integer $offset, integer $whence ) : boolean
$offset integer
$whence integer
리턴 boolean

size() 공개 메소드

returns size of content
public size ( ) : integer
리턴 integer

truncate() 공개 메소드

Truncates a file to a given length
public truncate ( integer $size ) : boolean
$size integer length to truncate file to
리턴 boolean

write() 공개 메소드

writes an amount of data
public write ( string $data ) : amount
$data string
리턴 amount of written bytes