GROUP BY currency
";
- $dao = CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($query);
$amount = array();
$count = 0;
while ($dao->fetch()) {
WHERE civicrm_contribution.contact_id = civicrm_contact.id
AND civicrm_contribution.id = {$id}
";
- return CRM_Core_DAO::singleValueQuery($query, CRM_Core_DAO::$_nullArray);
+ return CRM_Core_DAO::singleValueQuery($query);
}
/**
// get the contact_id -> file_id mapping
$fileIds = array();
$sql = "SELECT entity_id, {$columnName} AS file_id FROM {$tableName} WHERE entity_id IN ({$mainId}, {$otherId})";
- $dao = CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($sql);
while ($dao->fetch()) {
$fileIds[$dao->entity_id] = $dao->file_id;
}
else {
$sql = "INSERT INTO {$tableName} ( entity_id, {$columnName} ) VALUES ( {$mainId}, {$fileIds[$otherId]} )";
}
- CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
+ CRM_Core_DAO::executeQuery($sql);
if (CRM_Core_DAO::singleValueQuery("
SELECT id
INSERT INTO civicrm_entity_file ( entity_table, entity_id, file_id )
VALUES ( '{$tableName}', {$mainId}, {$fileIds[$otherId]} )";
}
- CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
+ CRM_Core_DAO::executeQuery($sql);
}
// move view only custom fields CRM-5362
INNER JOIN civicrm_contact ct ON ( mem.contact_id = ct.id )
WHERE mem.id IN ( $memberIDs )";
- $dao = CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($query);
while ($dao->fetch()) {
$rows[] = array(
'display_name' => $dao->display_name,
WHERE civicrm_pcp.contact_id = civicrm_contact.id
AND civicrm_pcp.id = {$id}
";
- return CRM_Core_DAO::singleValueQuery($query, CRM_Core_DAO::$_nullArray);
+ return CRM_Core_DAO::singleValueQuery($query);
}
/**
AND cs.pcp_display_in_roll = 1
AND contribution_status_id = 1
AND is_test = 0";
- $dao = CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($query);
$honor = array();
while ($dao->fetch()) {
$honor[$dao->id]['nickname'] = ucwords($dao->pcp_roll_nickname);
$end = substr($endDate, 0, 8);
$pCount = 0;
$pamount = array();
- $dao = CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($query);
while ($dao->fetch()) {
$pCount += $dao->pledge_count;
$pamount[] = CRM_Utils_Money::format($dao->pledge_amount, $dao->currency);
GROUP BY cp.currency
";
if ($select) {
- $dao = CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($query);
$amount = array();
$count = 0;
INNER JOIN civicrm_contact ct ON ( plg.contact_id = ct.id )
WHERE plg.id IN ( $pledgeIDs )";
- $dao = CRM_Core_DAO::executeQuery($query, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($query);
while ($dao->fetch()) {
$rows[] = array(
'display_name' => $dao->display_name,
function count() {
$sql = $this->all();
- $dao = CRM_Core_DAO::executeQuery($sql,
- CRM_Core_DAO::$_nullArray
- );
+ $dao = CRM_Core_DAO::executeQuery($sql);
return $dao->N;
}
$sql .= " AND $additionalWhereCond";
}
- $dao = &CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($sql);
while ($dao->fetch()) {
foreach ($fields as $fld => $name) {
if (empty($dao->$fld)) {
'supplemental_address_2', 'city', 'postal_code', 'county', 'state',
'country', 'email', 'phone', 'im',
);
- $dao = &CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
+ $dao = CRM_Core_DAO::executeQuery($sql);
while ($dao->fetch()) {
foreach ($fields as $fld) {
if (empty($dao->$fld)) {
SELECT id
FROM civicrm_contact
EOT;
-$dao = &CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
+$dao = CRM_Core_DAO::executeQuery($sql);
$contactIDs = array();
while ($dao->fetch()) {