Elgg
Version 6.2
|
A filestore that uses disk as storage. More...
Public Member Functions | ||||
__construct ($directory_root='') | ||||
Construct a temp disk filestore using the given directory root. More... | ||||
getFilenameOnFilestore (\ElggFile $file) | ||||
Get the filename as saved on disk for an \ElggFile object. More... | ||||
getParameters () | ||||
{Returns a list of attributes to save to the database when saving the \ElggFile object using this file store.
| ||||
setParameters (array $parameters) | ||||
{Sets parameters that should be saved to database.
| ||||
![]() | ||||
open (\ElggFile $file, string $mode) | ||||
Open a file for reading, writing, or both. More... | ||||
write ($f, $data) | ||||
Write data to a file. More... | ||||
read ($f, int $length, int $offset=0) | ||||
Read data from a file. More... | ||||
close ($f) | ||||
Close a file pointer. More... | ||||
delete (\ElggFile $file, bool $follow_symlinks=true) | ||||
Delete an \ElggFile file. More... | ||||
seek ($f, int $position) | ||||
Seek to the specified position. More... | ||||
tell ($f) | ||||
Return the current location of the internal pointer. More... | ||||
eof ($f) | ||||
Tests for end of file on a file pointer. More... | ||||
getFileSize (\ElggFile $file) | ||||
Returns the file size of an \ElggFile file. More... | ||||
grabFile (\ElggFile $file) | ||||
Returns the contents of the \ElggFile file. More... | ||||
exists (\ElggFile $file) | ||||
Tests if an \ElggFile file exists. More... | ||||
![]() | ||||
write ($f, string $data) | ||||
Write data to a given file handle. More... | ||||
Protected Attributes | |
$unique_sub_dir | |
![]() | |
$dir_root | |
Additional Inherited Members | |
![]() | |
const | BUCKET_SIZE = 5000 |
Number of entries per matrix dir. More... | |
![]() | |
makeDirectoryRoot ($dirroot) | |
Create a directory $dirroot. More... | |
A filestore that uses disk as storage.
Definition at line 15 of file TempDiskFilestore.php.
Elgg\Filesystem\Filestore\TempDiskFilestore::__construct | ( | $directory_root = '' | ) |
Construct a temp disk filestore using the given directory root.
string | $directory_root | Root directory, must end in "/" |
Reimplemented from Elgg\Filesystem\Filestore\DiskFilestore.
Definition at line 27 of file TempDiskFilestore.php.
Elgg\Filesystem\Filestore\TempDiskFilestore::getFilenameOnFilestore | ( | \ElggFile | $file | ) |
Get the filename as saved on disk for an \ElggFile object.
Returns an empty string if no filename set
\ElggFile | $file | File object |
Reimplemented from Elgg\Filesystem\Filestore\DiskFilestore.
Definition at line 47 of file TempDiskFilestore.php.
Elgg\Filesystem\Filestore\TempDiskFilestore::getParameters | ( | ) |
{Returns a list of attributes to save to the database when saving the \ElggFile object using this file store.
Reimplemented from Elgg\Filesystem\Filestore\DiskFilestore.
Definition at line 59 of file TempDiskFilestore.php.
Elgg\Filesystem\Filestore\TempDiskFilestore::setParameters | ( | array | $parameters | ) |
{Sets parameters that should be saved to database.
array | $parameters | Set parameters to save to DB for this filestore. |
Reimplemented from Elgg\Filesystem\Filestore\DiskFilestore.
Definition at line 69 of file TempDiskFilestore.php.
|
protected |
Definition at line 20 of file TempDiskFilestore.php.