File service.
More...
File service.
Definition at line 14 of file File.php.
Elgg\FileService\File::bindSession |
( |
bool |
$use_cookie = true | ) |
|
Bind URL to current user session.
- Parameters
-
bool | $use_cookie | Use cookie |
- Returns
- void
Definition at line 92 of file File.php.
Elgg\FileService\File::getFile |
( |
| ) |
|
Returns file object.
- Returns
- |null
Definition at line 54 of file File.php.
Elgg\FileService\File::getURL |
( |
| ) |
|
Returns publicly accessible URL.
- Returns
- string|null
Definition at line 101 of file File.php.
Elgg\FileService\File::setDisposition |
( |
string |
$disposition = self::ATTACHMENT | ) |
|
Sets content disposition.
- Parameters
-
string | $disposition | Content disposition ('inline' or 'attachment') |
- Returns
- void
- Exceptions
-
Definition at line 77 of file File.php.
Elgg\FileService\File::setExpires |
( |
string |
$expires = '+2 hours' | ) |
|
Sets URL expiration.
- Parameters
-
string | $expires | String suitable for strtotime() |
- Returns
- void
Definition at line 65 of file File.php.
Elgg\FileService\File::setFile |
( |
\ElggFile |
$file | ) |
|
Set file object.
- Parameters
-
\ElggFile | $file | File object |
- Returns
- void
Definition at line 45 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