28 abstract public function write($f,
string $data): int;
58 abstract public function eof($f): bool;
67 abstract public function tell($f):
int|
false;
76 abstract public function close($f): bool;
85 abstract public function delete(
\ElggFile $file,
bool $follow_symlinks =
true):
bool;
120 abstract public function setParameters(array $parameters): bool;
$mode
Configure site maintenance mode.
seek($f, int $position)
Seek a given position within a file handle.
setParameters(array $parameters)
Set the parameters from the associative array produced by $this->getParameters(). ...
getParameters()
Get the filestore's creation parameters as an associative array.
getFilenameOnFilestore(\ElggFile $file)
Return the filename of a given file as stored on the filestore.
if(!$item instanceof\ElggEntity) $length
read($f, int $length, int $offset=0)
Read data from a filestore.
grabFile(\ElggFile $file)
Get the contents of the whole file.
if(!$entity instanceof\ElggUser) $data
write($f, string $data)
Write data to a given file handle.
getFileSize(\ElggFile $file)
Return the size in bytes for a given file.
eof($f)
Return a whether the end of a file has been reached.
This class defines the interface for all elgg data repositories.
exists(\ElggFile $file)
Return whether a file physically exists or not.
tell($f)
Return the current position in an open file.
close($f)
Close a given file handle.
open(\ElggFile $file, string $mode)
Attempt to open the file $file for storage or writing.