Method | Description | Returns |
---|---|---|
getPath() | Get the path for the filename including the folder. Does not escape forbidden characters by default. | string |
getExtension() | Get the extension for this filename | string |
\Files\Models\File|\Files\Models\ImagegetContent() | Get the content available at the filename | |
isContainedInFolder(Folder $folder) | Check whether this filename is contained in the given folder or its subfolders | bool |
getId() | int | |
getName() | string | |
getType() | string | |
getCreated() | Get the date the record was created. | DateTime |
getModified() | Get the last modification date for the record. | DateTime |
getHidden() | DateTime | |
isHidden() | bool | |
getExpires() | DateTime | |
isExpiring() | Returns if expire date is set for a filename | bool |
isExpired() | Returns if expire date (if it is set) has come | bool |
getFolder() | Folder | |
getImage() | Image | |
getFile() | File | |
getComments() | Collection (FilenameComment) | |
getShares() | Collection (SharedFilename) | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
Files\Models\Backend\Filename
Filename