File service.
More...
File service.
private
Definition at line 12 of file File.php.
Elgg\FileService\File::bindSession |
( |
|
$use_cookie = true | ) |
|
Bind URL to current user session.
- Parameters
-
bool | $use_cookie | Use cookie |
- Returns
- void
Definition at line 84 of file File.php.
Elgg\FileService\File::getFile |
( |
| ) |
|
Returns file object.
- Returns
- |null
Definition at line 51 of file File.php.
Elgg\FileService\File::getURL |
( |
| ) |
|
Returns publicly accessible URL.
- Returns
- string|false
Definition at line 92 of file File.php.
Elgg\FileService\File::setDisposition |
( |
|
$disposition = self::ATTACHMENT | ) |
|
Sets content disposition.
- Parameters
-
string | $disposition | Content disposition ('inline' or 'attachment') |
- Returns
- void
Definition at line 71 of file File.php.
Elgg\FileService\File::setExpires |
( |
|
$expires = '+2 hours' | ) |
|
Sets URL expiration.
- Parameters
-
int | $expires | String suitable for strtotime() |
- Returns
- void
Definition at line 61 of file File.php.
Elgg\FileService\File::setFile |
( |
\ElggFile |
$file | ) |
|
Set file object.
- Parameters
-
\ElggFile | $file | File object |
- Returns
- void
Definition at line 43 of file File.php.
const Elgg\FileService\File::ATTACHMENT = 'attachment' |
const Elgg\FileService\File::INLINE = 'inline' |
The documentation for this class was generated from the following file:
- engine/classes/Elgg/FileService/File.php