ModelFiles module
ImageRevision
A model in the Files module, with 20 members for templates, 16 API properties and 20 members for admin templates.
Templates view
Properties 19
Take no arguments.
-
#
getAspectRation() -
float - Get the aspect ration for the image revision based on the images width and height
-
#
getId() -
?int -
#
getText() -
?string - Get the description of the image revision - this is usually only used internally, e.g. to explain changes in a new revision
-
#
getVirtualFile() -
?VirtualFile -
#
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.
-
#
getResized(?int $width, ?int $height, string $resizeStrategy) -
TransformedImage - Get a resized version of the active revision of the image
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 16
Read-only values on the record.
-
#
aspectRation -
float - Get the aspect ration for the image revision based on the images width and height
-
#
id -
?int -
#
text -
?string - Get the description of the image revision - this is usually only used internally, e.g. to explain changes in a new revision
-
#
virtualFile -
?VirtualFile
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 19
Take no arguments.
-
#
getAspectRation() -
float - Get the aspect ration for the image revision based on the images width and height
-
#
getId() -
?int -
#
getText() -
?string - Get the description of the image revision - this is usually only used internally, e.g. to explain changes in a new revision
-
#
getVirtualFile() -
?VirtualFile -
#
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.
-
#
getResized(?int $width, ?int $height, string $resizeStrategy) -
TransformedImage - Get a resized version of the active revision of the image
No members match the filter.