ActionMapping - Improve class structure
authorcolemanw <coleman@civicrm.org>
Tue, 18 Jul 2023 00:27:51 +0000 (20:27 -0400)
committercolemanw <coleman@civicrm.org>
Tue, 18 Jul 2023 00:39:29 +0000 (20:39 -0400)
commit4b21d3176873009151736a62ef5c04886bde4381
tree6be12c98a3325058a9eeb0e06789063e68b73ba7
parent25f871c96b7a70a2bf03eb276405f29ab548ca80
ActionMapping - Improve class structure

Completes the refactoring that began with https://github.com/civicrm/civicrm-core/pull/6687
Fully migrates from the old model based on the civicrm_action_mapping table
(dropped in https://github.com/civicrm/civicrm-core/pull/26646)
by removing all references to that structure and fully embracing the object-model.
New common base-class added to make it eaiser to implement MappingInterface.
15 files changed:
CRM/Activity/ActionMapping.php
CRM/Contact/ActionMapping.php
CRM/Contribute/ActionMapping.php [new file with mode: 0644]
CRM/Contribute/ActionMapping/ByPage.php
CRM/Contribute/ActionMapping/ByType.php
CRM/Event/ActionMapping.php
CRM/Event/ActionMapping/ByEvent.php [new file with mode: 0644]
CRM/Event/ActionMapping/ByTemplate.php [new file with mode: 0644]
CRM/Event/ActionMapping/ByType.php [new file with mode: 0644]
CRM/Member/ActionMapping.php
Civi/ActionSchedule/Mapping.php [deleted file]
Civi/ActionSchedule/MappingBase.php [new file with mode: 0644]
Civi/ActionSchedule/MappingInterface.php
Civi/Core/Container.php
tests/phpunit/CRM/Contribute/ActionMapping/ByTypeTest.php