29 if (!$directory_root) {
30 $directory_root =
rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) .
'/';
33 $this->unique_sub_dir = uniqid() .
'/';
35 parent::__construct($directory_root);
60 $params = parent::getParameters();
71 if (isset($parameters[
'unique_sub_dir'])) {
72 $this->unique_sub_dir = $parameters[
'unique_sub_dir'];
75 return parent::setParameters($parameters);
__construct($directory_root= '')
Construct a temp disk filestore using the given directory root.
$params
Saves global plugin settings.
A filestore that uses disk as storage.
getFilename()
Return the filename.
setParameters(array $parameters)
{}
getFilenameOnFilestore(\ElggFile $file)
Get the filename as saved on disk for an object.
static sanitize($path, $append_slash=true)
Sanitize file paths ensuring that they begin and end with slashes etc.
A filestore that uses disk as storage.