ModelFiles module
File
A model in the Files module, with 19 members for templates, 14 API properties and 19 members for admin templates.
Templates view
Properties 18
Take no arguments.
-
#
__toString()Templates only -
string - Get the string representation of the file, which is the file path
-
#
getType() -
?string - Get the type of the file. Tries to determine the file type based on the active revision's virtual file type.
-
#
getPreviewImage() -
?Image - Get a preview image for the file. Returns null if no preview image exists.
-
#
getId() -
?int -
#
getActiveRevision() -
?FileRevision -
#
getTags() -
?Collection<Tag> -
#
getCategories() -
?Collection<Category> -
#
getRevisions() -
?Collection<FileRevision> -
#
getLastRevision() -
?FileRevision - Get the last revision for the entity. If a revision has been added, this will be the newly added revision.
-
#
getExternalId() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 1
Take arguments. The API serialises only getters that need none.
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 14
Read-only values on the record.
-
#
type -
?string - Get the type of the file. Tries to determine the file type based on the active revision's virtual file type.
-
#
id -
?int -
#
activeRevision -
?FileRevision -
#
tags -
?Collection<Tag> -
#
categories -
?Collection<Category> -
#
revisions -
?Collection<FileRevision> -
#
lastRevision -
?FileRevision - Get the last revision for the entity. If a revision has been added, this will be the newly added revision.
-
#
externalId -
?string
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 18
Take no arguments.
-
#
getType() -
?string - Get the type of the file. Tries to determine the file type based on the active revision's virtual file type.
-
#
getPreviewImage() -
?Image - Get a preview image for the file. Returns null if no preview image exists.
-
#
getId() -
?int -
#
getActiveRevision() -
?FileRevision -
#
getTags() -
?Collection<Tag> -
#
getCategories() -
?Collection<Category> -
#
getRevisions() -
?Collection<FileRevision> -
#
getLastRevision() -
?FileRevision - Get the last revision for the entity. If a revision has been added, this will be the newly added revision.
-
#
getExternalId() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 1
Take arguments. The API serialises only getters that need none.
No members match the filter.