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);
61 $params[
'unique_sub_dir'] = $this->unique_sub_dir;
71 if (isset($parameters[
'unique_sub_dir'])) {
72 $this->unique_sub_dir = $parameters[
'unique_sub_dir'];
75 return parent::setParameters($parameters);
$params
Saves global plugin settings.
getFilename()
Return the filename.
A filestore that uses disk as storage.
A filestore that uses disk as storage.
getParameters()
{Returns a list of attributes to save to the database when saving the \ElggFile object using this fil...
__construct($directory_root='')
Construct a temp disk filestore using the given directory root.
getFilenameOnFilestore(\ElggFile $file)
Get the filename as saved on disk for an \ElggFile object.
setParameters(array $parameters)
{Sets parameters that should be saved to database.Set parameters to save to DB for this filestore....
getParameters()
Get the filestore's creation parameters as an associative array.
Find Elgg and project paths.
static sanitize($path, $append_slash=true)
Sanitize file paths ensuring that they begin and end with slashes etc.
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.