(dev/core#217) CRM_Contact_Selector::getRows() - Use generator instead of DAO loop
authorTim Otten <totten@civicrm.org>
Fri, 29 Jun 2018 21:35:47 +0000 (14:35 -0700)
committerTim Otten <totten@civicrm.org>
Sat, 7 Jul 2018 02:43:46 +0000 (19:43 -0700)
commitfbef7ddcc6f871a6f0ce97758b81315bb2074126
tree08580ea0b45d9c207e9292b8bf265812e207c221
parent41d41c91a8c5e7734f6ec450b602c60b40c5f1f7
(dev/core#217) CRM_Contact_Selector::getRows() - Use generator instead of DAO loop

Currently, cached data is read from MySQL, so it's OK to treat `$result` as
DAO.  However, eventually, we'll cache in a different data-source, and (when
dealing with multiple backend) it'll be easier to support a
`Generator<Object>` rather than `CRM_Core_DAO`.

See also: http://php.net/manual/en/language.generators.overview.php
CRM/Contact/Selector.php