Afform - Store submissions in a new database table
authorColeman Watts <coleman@civicrm.org>
Thu, 12 Aug 2021 21:17:05 +0000 (17:17 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 24 Aug 2021 00:40:40 +0000 (20:40 -0400)
commite6772fc67cfe9e735448f33c63d2f404831f4353
tree82550d8acb7febb72646e287929c9d2f17d2905a
parenta6622c83fab99a18db1b575f08c86b810b25cbed
Afform - Store submissions in a new database table

This adds the `civicrm_afform_submission` table and accompanying api entity,
and a new Afform setting "create_submission" which will store a
submission record whenever a form is submitted.
14 files changed:
ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js
ext/afform/admin/ang/afGuiEditor/config-form.html
ext/afform/core/CRM/Afform/BAO/AfformSubmission.php [new file with mode: 0644]
ext/afform/core/CRM/Afform/DAO/AfformSubmission.php [new file with mode: 0644]
ext/afform/core/CRM/Afform/Upgrader.php
ext/afform/core/Civi/Api4/Action/Afform/Submit.php
ext/afform/core/Civi/Api4/Afform.php
ext/afform/core/Civi/Api4/AfformSubmission.php [new file with mode: 0644]
ext/afform/core/afform.civix.php
ext/afform/core/sql/auto_install.sql [new file with mode: 0644]
ext/afform/core/sql/auto_uninstall.sql [new file with mode: 0644]
ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.entityType.php [new file with mode: 0644]
ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.xml [new file with mode: 0644]
ext/afform/mock/tests/phpunit/api/v4/AfformContactUsageTest.php