Method |
Description |
|
__construct ( string $directory_root = "" ) |
Construct a disk filestore using the given directory root. |
|
close ( resource $f ) : boolean |
Close a file pointer |
|
delete ( ElggFile $file, boolean $follow_symlinks = true ) : boolean |
Delete an \ElggFile file. |
|
eof ( resource $f ) : boolean |
Tests for end of file on a file pointer |
|
exists ( ElggFile $file ) : boolean |
Tests if an \ElggFile file exists. |
|
getFileSize ( ElggFile $file ) : integer |
Returns the file size of an \ElggFile file. |
|
getFilenameOnFilestore ( ElggFile $file ) : string |
Get the filename as saved on disk for an \ElggFile object |
|
getParameters ( ) : array |
Returns a list of attributes to save to the database when saving
the \ElggFile object using this file store. |
|
getSize ( string $prefix, string $container_guid ) : integer | false |
Returns the size of all data stored under a directory in the disk store. |
|
grabFile ( ElggFile $file ) : string |
Returns the contents of the \ElggFile file. |
|
open ( ElggFile $file, string $mode ) : resource |
Open a file for reading, writing, or both. |
|
read ( resource $f, integer $length, integer $offset ) : mixed |
Read data from a file. |
|
seek ( resource $f, integer $position ) : integer |
Seek to the specified position. |
|
setParameters ( array $parameters ) : boolean |
Sets parameters that should be saved to database. |
|
tell ( resource $f ) : integer | false |
Return the current location of the internal pointer |
|
write ( resource $f, mixed $data ) : boolean |
Write data to a file. |
|