Method |
Description |
|
deleteForm ( AmForms_FormModel $form ) : boolean |
Delete a form. |
|
displayField ( AmForms_FormModel $form, string $handle ) : string |
Display a field. |
|
displayForm ( AmForms_FormModel $form ) : string |
Display a form. |
|
getAllForms ( $indexBy = 'id' ) : AmForms_FormModel | array | null |
Get all forms. |
|
getCriteria ( array $attributes = [] ) : craft\ElementCriteriaModel |
Returns a criteria model for AmForms_Form elements. |
|
getFormByHandle ( string $handle ) : AmForms_FormModel | null |
Get a form by its handle. |
|
getFormById ( integer $id ) : AmForms_FormModel | null |
Get a form by its ID. |
|
getNamespaceForForm ( AmForms_FormModel $form, boolean $createNewOnEmpty = true ) : false | string |
Get a namespace for a form. |
|
getUniqueNameAndHandle ( AmForms_FormModel $form ) |
Get unique name and handle for a form. |
|
saveForm ( AmForms_FormModel $form ) : boolean |
Save a form. |
|