_civicrm_api3_basic_array_get - Helper for simple array-backed APIs
authorTim Otten <totten@civicrm.org>
Fri, 27 Mar 2015 07:00:11 +0000 (00:00 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 14 Jul 2015 04:00:05 +0000 (21:00 -0700)
commit5bc7c754b9bcde10c913b79912ff42a1c320717d
treedb735ce64c787fe26f238b70bb16ce24ab2f387a
parent7c2ce2c4f23bc8ba595d4603f0a2411617fbf51e
_civicrm_api3_basic_array_get - Helper for simple array-backed APIs

Suppose you have a small/mid-sized list of records (from JSON, XML, YAML,
etc) and want to expose an API for filtering them.  You could make a new
table and new DAO/BAO and then call _civicrm_api3_basic_get, but
_civicrm_api3_basic_array_get would be so much simpler.
CRM/Utils/Array.php
api/v3/utils.php
tests/phpunit/api/v3/UtilsTest.php