\app\framework\Component\Storage\FileFileInterface

Summary

Methods
Constants
getStorage()
getKey()
getTimeModified()
setContents()
getSize()
touch()
getContent()
rename()
delete()
getAbsolutePath()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getKey()

getKey() : string

Get file key

Returns

string

setContents()

setContents(mixed  $contents, boolean  $append = false) : $this

Set file contents (writes contents to storage)<br />

Fires an event StorageEvent::FILE_SAVED after the file content was written.

Parameters

mixed $contents
boolean $append

Returns

$this

getSize()

getSize() : integer|null

Get file size in bytes

Returns

integer|null —

Number of bytes or null

touch()

touch() : $this

Touch a file (change time modified)

Returns

$this

getContent()

getContent() : mixed

Get file contents

Returns

mixed

rename()

rename(  $newName) : mixed

Cpt. Obviously approves that this method renames the File.

Parameters

$newName

Returns

mixed

delete()

delete() : mixed

Deletes the File.

Returns

mixed

getAbsolutePath()

getAbsolutePath() : mixed

Returns

mixed