projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3c0f6
)
CRM_Core_DAO::fetchAll
author
Tim Otten
<totten@civicrm.org>
Thu, 30 Jul 2015 04:21:23 +0000
(21:21 -0700)
committer
Tim Otten
<totten@civicrm.org>
Sat, 15 Aug 2015 10:25:57 +0000
(
03:25
-0700)
CRM/Core/DAO.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/DAO.php
b/CRM/Core/DAO.php
index a08600a82663e97d2e3b5d2f4aa1ba4fbbac8b1d..3c5f3294b885d951b5b5ea2f07def7919108a528 100644
(file)
--- a/
CRM/Core/DAO.php
+++ b/
CRM/Core/DAO.php
@@
-977,6
+977,19
@@
FROM civicrm_domain
return $object;
}
+ /**
+ * Returns all results as array-encoded records.
+ *
+ * @return array
+ */
+ public function fetchAll() {
+ $result = array();
+ while ($this->fetch()) {
+ $result[] = $this->toArray();
+ }
+ return $result;
+ }
+
/**
* Given a DAO name, a column name and a column value, find the record and GET the value of another column in that record
*