Method | Description | Returns |
---|---|---|
getPath() | Get the path for the filename including the folder. Also makes sure the path does not contain any forbidden characters by escaping them. | 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\Frontend\Filename
Filename