Implement CRM_Utils_SQL_Delete
authorTim Otten <totten@civicrm.org>
Sun, 8 Jul 2018 01:48:30 +0000 (18:48 -0700)
committerTim Otten <totten@civicrm.org>
Sun, 8 Jul 2018 02:05:19 +0000 (19:05 -0700)
commitbfd417c7fd7bc0e876c4ec9f113434aa12122536
treee9e136d2e427807a0c5136c5cbbbc6652703b896
parent2a032c316147f819648b544ed1879c24cdf3f9c7
Implement CRM_Utils_SQL_Delete

Before
------
* `CRM_Utils_SQL_Select` and `CRM_Utils_SQL_Insert` are query-building utilities.

After
-----
* `CRM_Utils_SQL_Select`, `CRM_Utils_SQL_Insert`, and `CRM_Utils_SQL_Delete` are query-building utilities.
* `CRM_Utils_SQL_Select` and `CRM_Utils_SQL_Delete` extend a common base-class, which includes parameter-management/interpolation functions.
    * (*Note: Initially tried doing this as a trait, but traits aren't allowed to define constants.*)
CRM/Utils/SQL/BaseParamQuery.php [new file with mode: 0644]
CRM/Utils/SQL/Delete.php [new file with mode: 0644]
CRM/Utils/SQL/Select.php
tests/phpunit/CRM/Utils/SQL/DeleteTest.php [new file with mode: 0644]