PHP Интерфейс org\bovigo\vfs\content\FileContent

С версии: 1.3.0
Показать файл Открыть проект

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

Метод Описание
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