Elgg
Version 6.1
|
Go to the source code of this file.
Functions | |
elgg_save_resized_image (string $source, string $destination=null, array $params=[]) | |
Crops and resizes an image. More... | |
elgg_delete_directory (string $directory, bool $leave_base_directory=false) | |
Delete a directory and all its contents. More... | |
elgg_get_download_url (\ElggFile $file, bool $use_cookie=true, string $expires= '+2 hours') | |
Returns file's download URL. More... | |
elgg_get_inline_url (\ElggFile $file, bool $use_cookie=false, string $expires= '') | |
Returns file's URL for inline display Suitable for displaying cacheable resources, such as user avatars. More... | |
elgg_get_embed_url (\ElggEntity $entity, string $size) | |
Returns a URL suitable for embedding entity's icon in a text editor. More... | |
elgg_get_uploaded_files (string $input_name) | |
Returns an array of uploaded file objects regardless of upload status/errors. More... | |
elgg_get_uploaded_file (string $input_name, bool $check_for_validity=true) | |
Returns a single valid uploaded file object. More... | |
elgg_get_temp_file () | |
Returns a ElggTempFile which can handle writing/reading of data to a temporary file location. More... | |
elgg_delete_directory | ( | string | $directory, |
bool | $leave_base_directory = false |
||
) |
Delete a directory and all its contents.
string | $directory | Directory to delete |
bool | $leave_base_directory | Leave the base directory intact (default: false) |
Definition at line 51 of file filestore.php.
elgg_get_download_url | ( | \ElggFile | $file, |
bool | $use_cookie = true , |
||
string | $expires = '+2 hours' |
||
) |
Returns file's download URL.
\ElggFile | $file | File object or entity (must have the default filestore) |
bool | $use_cookie | Limit URL validity to current session only |
string | $expires | URL expiration, as a string suitable for strtotime() |
Definition at line 97 of file filestore.php.
elgg_get_embed_url | ( | \ElggEntity | $entity, |
string | $size | ||
) |
Returns a URL suitable for embedding entity's icon in a text editor.
We can not use elgg_get_inline_url() for these purposes due to a URL structure bound to user session and file modification time. This function returns a generic (permanent) URL that will then be resolved to an inline URL whenever requested.
\ElggEntity | $entity | Entity |
string | $size | Size |
Definition at line 130 of file filestore.php.
elgg_get_inline_url | ( | \ElggFile | $file, |
bool | $use_cookie = false , |
||
string | $expires = '' |
||
) |
Returns file's URL for inline display Suitable for displaying cacheable resources, such as user avatars.
\ElggFile | $file | File object or entity (must have the default filestore) |
bool | $use_cookie | Limit URL validity to current session only |
string | $expires | URL expiration, as a string suitable for strtotime() |
Definition at line 113 of file filestore.php.
elgg_get_temp_file | ( | ) |
Returns a ElggTempFile which can handle writing/reading of data to a temporary file location.
Definition at line 166 of file filestore.php.
elgg_get_uploaded_file | ( | string | $input_name, |
bool | $check_for_validity = true |
||
) |
Returns a single valid uploaded file object.
string | $input_name | Form input name |
bool | $check_for_validity | If there is an uploaded file, is it required to be valid |
Definition at line 156 of file filestore.php.
elgg_get_uploaded_files | ( | string | $input_name | ) |
Returns an array of uploaded file objects regardless of upload status/errors.
string | $input_name | Form input name |
Definition at line 144 of file filestore.php.
elgg_save_resized_image | ( | string | $source, |
string | $destination = null , |
||
array | $params = [] |
||
) |
Crops and resizes an image.
The following parameters are supported in params:
string | $source | Path to source image |
string | $destination | Path to destination If not set, will modify the source image |
array | $params | An array of cropping/resizing parameters |
Definition at line 38 of file filestore.php.