Method |
Description |
|
__construct ( resource $fd, string $path ) |
File constructor |
|
__destruct ( ) |
Destructor |
|
__toString ( ) : string |
toString handler |
|
chown ( integer $uid, integer $gid, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
Changes ownership of this file |
|
clearStatCache ( ) : void |
Clears cache of stat() and statvfs() |
|
close ( ) : resource | false |
Close the file |
|
convertFlags ( string $mode, boolean $text = false ) : mixed |
Converts string of flags to integer or standard text representation |
|
datasync ( callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
Datasync() |
|
getFd ( ) : resource |
Get file descriptor |
|
read ( integer $length, integer $offset = null, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : boolean |
Reads data from file |
|
readAll ( callable $cb, integer $pri = EIO_PRI_DEFAULT ) : boolean |
Reads whole file |
|
readAllChunked ( callable $cb = null, callable $chunkcb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
Reads file chunk-by-chunk |
|
readahead ( integer $length, integer $offset = null, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
readahead() |
|
seek ( integer $offset, callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
Move pointer to arbitrary position |
|
sendfile ( mixed $outfd, callable $cb, callable $startCb = null, integer $offset, integer $length = null, integer $pri = EIO_PRI_DEFAULT ) : boolean |
sendfile() |
|
setChunkSize ( integer $n ) : void |
Set chunk size |
|
stat ( callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | boolean |
Stat() |
|
statRefresh ( callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | boolean |
Stat() non-cached |
|
statvfs ( callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | boolean |
Statvfs() |
|
sync ( callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
Sync() |
|
tell ( ) : integer |
Get current pointer position |
|
touch ( integer $mtime, integer $atime = null, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
touch() |
|
truncate ( integer $offset, callable $cb = null, integer $pri = EIO_PRI_DEFAULT ) : resource | boolean |
Truncates this file |
|
write ( string $data, callable $cb = null, integer $offset = null, integer $pri = EIO_PRI_DEFAULT ) : resource | false |
Writes data to file |
|