Cleanup MailingAB BAO
authorColeman Watts <coleman@civicrm.org>
Tue, 12 May 2020 17:32:48 +0000 (13:32 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 12 May 2020 19:36:43 +0000 (15:36 -0400)
commita63d3a16891c0a4ecff256dd19efb1f686f859ac
tree15844b8cb78f6303a50b4dc1e7673bec79ebb8f4
parentefce52b55a3ffad326f517dc7972039bbcea2493
Cleanup MailingAB BAO

- Use writeRecord function instead of boilerplate.
- Use api defaults for domain_id instead of setting in BAO:
  - APIv3 default domain is set via _civicrm_api3_mailing_a_b_create_spec() function.
  - APIv4 FieldDomainIdSpecProvider will set it automatically based on the required property in the schema.
CRM/Mailing/BAO/MailingAB.php
CRM/Mailing/DAO/MailingAB.php
api/v3/MailingAB.php
xml/schema/Mailing/MailingAB.xml