PHP Interface org\bovigo\vfs\content\FileContent

Since: 1.3.0
Afficher le fichier Open project: mikey179/vfsstream

Méthodes publiques

Méthode Description
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

Method Details

content() public méthode

returns actual content
public content ( ) : string
Résultat string

eof() public méthode

checks whether pointer is at end of file
public eof ( ) : boolean
Résultat boolean

read() public méthode

reads the given amount of bytes from content
public read ( integer $count ) : string
$count integer
Résultat string

seek() public méthode

seeks to the given offset
public seek ( integer $offset, integer $whence ) : boolean
$offset integer
$whence integer
Résultat boolean

size() public méthode

returns size of content
public size ( ) : integer
Résultat integer

truncate() public méthode

Truncates a file to a given length
public truncate ( integer $size ) : boolean
$size integer length to truncate file to
Résultat boolean

write() public méthode

writes an amount of data
public write ( string $data ) : amount
$data string
Résultat amount of written bytes