xml/templates/dao.tpl - Centralize export() / import() logic
authorTim Otten <totten@civicrm.org>
Thu, 28 Jul 2016 19:58:46 +0000 (12:58 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 28 Jul 2016 21:20:23 +0000 (14:20 -0700)
commit84a0493ce59dc0d76a7b5239031a709f1e4dc5f3
treedcbd337622a76a471496db1e95a165be122238a5
parent437fafcfbc5284ebe4225d58a235cc6d8882dda8
xml/templates/dao.tpl - Centralize export() / import() logic

There's repetitive bugginess in these functions. We can reduce SLOC and
gain leverage by moving the guts to a central function.

QA note: To test that these patches had no functional impact, I used some
helper scripts: https://gist.github.com/totten/4473975264fc2a788391d3c5ef5bf18b

Fun fact: This is net-reduction of ~6,000 SLOC.
CRM/Core/DAO/AllCoreTables.php
xml/templates/dao.tpl