Method |
Description |
|
__sleep ( ) : string[] |
Get property names to serialize. |
|
acceptUploadedFile ( Symfony\Component\HttpFoundation\File\UploadedFile $upload ) : boolean |
Writes contents of the uploaded file to an instance of ElggFile |
|
close ( ) : boolean |
Close the file and commit changes |
|
delete ( boolean $follow_symlinks = true ) : boolean |
Delete this file. |
|
detectMimeType ( mixed $file = null, mixed $default = null ) : mixed |
Detects mime types based on filename or actual file. |
|
eof ( ) : boolean |
Return a boolean value whether the file handle is at the end of the file |
|
exists ( ) : boolean |
Returns if the file exists |
|
getFilename ( ) : string |
Return the filename. |
|
getFilenameOnFilestore ( ) : string |
Return the filename of this file as it is/will be stored on the
filestore, which may be different to the filename. |
|
getFilestoreSize ( string $prefix = '', integer $container_guid ) : integer |
Return the size of the filestore associated with this file |
|
getMimeType ( ) : string |
Get the mime type of the file. |
|
getModifiedTime ( ) : integer |
Returns file modification time |
|
getSimpleType ( ) : string |
Get the simple type of the file. |
|
getSize ( ) : integer |
Return the size of the file in bytes. |
|
grabFile ( ) : mixed |
Gets the full contents of this file. |
|
open ( string $mode ) : resource |
Open the file with the given mode |
|
read ( integer $length, integer $offset ) : mixed |
Read data. |
|
seek ( integer $position ) : void |
Seek a position in the file. |
|
setDescription ( string $description ) : boolean |
Set the optional file description. |
|
setFilename ( string $name ) : void |
Set the filename of this file. |
|
setMimeType ( string $mimetype ) : boolean |
Set the mime type of the file. |
|
setModifiedTime ( ) : boolean |
Updates modification time of the file and clears stats cache for the file |
|
tell ( ) : integer |
Return the current position of the file. |
|
transfer ( integer $owner_guid, string $filename = null ) : boolean |
Transfer a file to a new owner and sets a new filename,
copies file contents to a new location. |
|
write ( string $data ) : boolean |
Write data. |
|