ModelForms module
FormRevision
A model in the Forms module, with 49 members for templates, 22 API properties and 48 members for admin templates.
Templates view
Properties 25
Take no arguments.
-
#
hasRequireCompletedCaptcha() -
bool - Returns if completed captcha (when such input exists) is required to save the submission. If there is a captcha input among submitted steps, every of such has to be completed. Otherwise, the form submission will not be saved. The setting is not used when there is no captcha input.
-
#
getAreas() -
?Collection -
#
getId() -
?int -
#
getType() -
?string -
#
getBranch() -
?RevisionBranch -
#
getSteps() -
?Collection<Step> -
#
getElements() -
?Collection<BaseElement> -
#
getConditionals() -
?Collection<Conditional> -
#
getConditions() -
?Collection<aseCondition> -
#
getActions() -
?Collection<aseAction> -
#
getSettings() -
?array -
#
getFormAreas() -
?Collection<FormArea> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 24
Take arguments. The API serialises only getters that need none.
-
#
getAreaContent(string $areaName) -
Content - Get the content of the layout area Will return a BlankContent if no content was defined
-
#
getAreaDefaultContent(string $areaName) -
Content - Get the default content of the layout area Will return a BlankContent if no content was defined
-
#
getAreaContentOrDefault(string $areaName) -
Content - Get the content of the layout area, or the default content if no content exists If no default content exists, a BlankContent will be returned
-
#
isAreaBlank(string $areaName) -
bool - Check whether the layout area with the specified name has no usable content. Resolves the area's content, falling back to its default, and reports the area as blank when no content exists at all, when the content is one of the framework's Blank objects, or when the content is empty for its category. Blank describes what is stored, not what renders: the answer comes from the stored content and never renders a template. An area can therefore be not blank and still render nothing — a record that was deleted or has no layout, a component or widget whose template outputs nothing, or text whose only content is a placeholder for a deleted image. To decide on the rendered output instead, test the result of getAreaHtml(). Emptiness cannot always be determined — Content::isEmpty() throws a RuntimeException when the content has no input type, or when its category is not one the framework knows how to answer for. Those two cases are reported as not blank, the same answer the Twig
emptytest gives. Any other failure, such as a database error, is not contained and reaches the error handler. -
#
getAreaAttributesContent(string $areaName) -
array - Gets the content of every layout area attribute. If layout area does not have attributes, returns empty array.
-
#
getAreaAttributesDefaultContent(string $areaName) -
array - Gets the default content of every layout area attribute. If layout area does not have attributes, returns empty array.
-
#
getAreaAttributesContentOrDefault(string $areaName) -
array - Gets the content (or the default content if no content exists) of every layout area attribute. If layout area does not have attributes, returns empty array.
-
#
getEntityAreaByLayoutArea(LayoutArea $area) -
?Model - Get the link record between the layout area and content for the designated layout area
-
#
hasAreaWithName(string $areaName) -
bool - Check if an area with the specified name exists for the container
-
#
getAreaType(string $areaName) -
?InputType - Get the input type for the specified layout area. Returns null if the area with the specified name could not be found.
-
#
getAreaCategory(string $areaName) -
?string - Get the category for the specified layout area. Returns null if the area with the specified name could not be found.
-
#
getAreaEditor(string $areaName) -
?string - Get the editor for the specified layout area. Returns null if the area with the specified name could not be found.
-
#
getAreaImage(string $areaName) -
Image - Get the image for the layout area with the specified name Will return a BlankImage if no image was defined
-
#
getAreaRecords(string $areaName) -
?Collection - Get the records for the layout area with the specified name
-
#
getAreaWidget(string $areaName) -
Widget - Get the widget for the layout area with the specified name Will return a BlankWidget if no image was defined
-
#
getAreaComponent(string $areaName) -
Component - Get the component for the layout area with the specified name Will return a BlankComponent if no image was defined
-
#
getAreaCollectionElements(string $areaName) -
?Collection - Get the component collection elements for the layout area with the specified name
-
#
getAreaHtml(string $areaName) -
string - Get the rendered HTML for the component area with the specified name. Adds live preview tags, if enabled.
-
#
getAreaImageOrPlaceholder(string $areaName, int $width, int $height)Templates only -
Image - Get the image for the component area with the specified name If the image does not exist, get a placeholder image with the specified dimensions Will always return an image, even if it was not found (in that case, an empty 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 22
Read-only values on the record.
-
#
requireCompletedCaptcha -
bool - Returns if completed captcha (when such input exists) is required to save the submission. If there is a captcha input among submitted steps, every of such has to be completed. Otherwise, the form submission will not be saved. The setting is not used when there is no captcha input.
-
#
areas -
?Collection -
#
id -
?int -
#
type -
?string -
#
branch -
?RevisionBranch -
#
steps -
?Collection<Step> -
#
elements -
?Collection<BaseElement> -
#
conditionals -
?Collection<Conditional> -
#
conditions -
?Collection<aseCondition> -
#
actions -
?Collection<aseAction> -
#
settings -
?array -
#
formAreas -
?Collection<FormArea>
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 25
Take no arguments.
-
#
hasRequireCompletedCaptcha() -
bool - Returns if completed captcha (when such input exists) is required to save the submission. If there is a captcha input among submitted steps, every of such has to be completed. Otherwise, the form submission will not be saved. The setting is not used when there is no captcha input.
-
#
getAreas() -
?Collection -
#
getId() -
?int -
#
getType() -
?string -
#
getBranch() -
?RevisionBranch -
#
getSteps() -
?Collection<Step> -
#
getElements() -
?Collection<BaseElement> -
#
getConditionals() -
?Collection<Conditional> -
#
getConditions() -
?Collection<aseCondition> -
#
getActions() -
?Collection<aseAction> -
#
getSettings() -
?array -
#
getFormAreas() -
?Collection<FormArea> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 23
Take arguments. The API serialises only getters that need none.
-
#
getAreaContentOrDefault(string $areaName) -
?Content - Get the content of the layout area, or the default content if no content exists
-
#
isAreaBlank(string $areaName) -
bool - Check whether the layout area with the specified name has no usable content. Resolves the area's content, falling back to its default, and reports the area as blank when no content exists at all, when the content is one of the framework's Blank objects, or when the content is empty for its category. Blank describes what is stored, not what renders: the answer comes from the stored content and never renders a template. An area can therefore be not blank and still render nothing — a record that was deleted or has no layout, a component or widget whose template outputs nothing, or text whose only content is a placeholder for a deleted image. To decide on the rendered output instead, test the result of getAreaHtml(). Emptiness cannot always be determined — Content::isEmpty() throws a RuntimeException when the content has no input type, or when its category is not one the framework knows how to answer for. Those two cases are reported as not blank, the same answer the Twig
emptytest gives. Any other failure, such as a database error, is not contained and reaches the error handler. -
#
getAreaAttributesContent(string $areaName) -
array - Gets the content of every layout area attribute. If layout area does not have attributes, returns empty array.
-
#
getAreaAttributesDefaultContent(string $areaName) -
array - Gets the default content of every layout area attribute. If layout area does not have attributes, returns empty array.
-
#
getAreaAttributesContentOrDefault(string $areaName) -
array - Gets the content (or the default content if no content exists) of every layout area attribute. If layout area does not have attributes, returns empty array.
-
#
getEntityAreaByLayoutArea(LayoutArea $area) -
?Model - Get the link record between the layout area and content for the designated layout area
-
#
hasAreaWithName(string $areaName) -
bool - Check if an area with the specified name exists for the container
-
#
getAreaType(string $areaName) -
?InputType - Get the input type for the specified layout area. Returns null if the area with the specified name could not be found.
-
#
getAreaCategory(string $areaName) -
?string - Get the category for the specified layout area. Returns null if the area with the specified name could not be found.
-
#
getAreaEditor(string $areaName) -
?string - Get the editor for the specified layout area. Returns null if the area with the specified name could not be found.
-
#
getAreaRecords(string $areaName) -
?Collection - Get the records for the layout area with the specified name
-
#
getAreaWidget(string $areaName) -
?Widget - Get the widget for the layout area with the specified name
-
#
getAreaComponent(string $areaName) -
?Component - Get the component for the layout area with the specified name
-
#
getAreaCollectionElements(string $areaName) -
?Collection - Get the component collection elements for the layout area with the specified name
-
#
getAreaHtml(string $areaName) -
string - Get the rendered HTML for the component area with the specified name. Adds live preview tags, if enabled.
No members match the filter.