protected $_customGroupExtends = array('Contribution');
/**
- *
*/
/**
- *
*/
public function __construct() {
'title' => ts('Last Name, First Name'),
'default' => '1',
'default_weight' => '0',
- 'default_order' => 'ASC'
+ 'default_order' => 'ASC',
),
),
'grouping' => 'contact-fields',
'net_amount' => NULL,
'contribution_or_soft' => array(
'title' => ts('Contribution OR Soft Credit?'),
- 'dbAlias' => "'Contribution'"
+ 'dbAlias' => "'Contribution'",
),
'soft_credits' => array(
'title' => ts('Soft Credits'),
- 'dbAlias' => "NULL"
+ 'dbAlias' => "NULL",
),
'soft_credit_for' => array(
'title' => ts('Soft Credit For'),
- 'dbAlias' => "NULL"
+ 'dbAlias' => "NULL",
),
),
'filters' => array(
) {
$tempQuery = "(SELECT * FROM civireport_contribution_detail_temp1)";
}
- else if (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) ==
+ elseif (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) ==
'soft_credits_only'
) {
$tempQuery = "(SELECT * FROM civireport_contribution_detail_temp2)";
list($alias, $rest) = explode('.', $clause);
$orderClause[] = $aliases[$alias] . "_" . $rest;
}
- $orderBy = (!empty($orderClause)) ?
- "ORDER BY " . implode(', ', $orderClause) : '';
+ $orderBy = (!empty($orderClause)) ? "ORDER BY " . implode(', ', $orderClause) : '';
}
// 6. show result set from temp table 3
}
else {
// other aliases are higher level; roll count into their total
- $totals[$key] = (array_key_exists($key, $totals)) ?
- $totals[$key] + $dao->ct : $dao->ct;
+ $totals[$key] = (array_key_exists($key, $totals)) ? $totals[$key] + $dao->ct : $dao->ct;
if ($showsumcontribs) {
- $sumcontribs[$key] = array_key_exists($key, $sumcontribs) ?
- $sumcontribs[$key] + $dao->sumcontribs : $dao->sumcontribs;
+ $sumcontribs[$key] = array_key_exists($key, $sumcontribs) ? $sumcontribs[$key] + $dao->sumcontribs : $dao->sumcontribs;
}
}
}
) {
$title = '%1 contributions: %2';
}
- else if (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) ==
+ elseif (CRM_Utils_Array::value('contribution_or_soft_value', $this->_params) ==
'soft_credits_only'
) {
$title = '%1 soft-credits: %2';
foreach ($totals as $key => $total) {
$totalandsum[$key] = ts($title, array(
1 => $total,
- 2 => CRM_Utils_Money::format($sumcontribs[$key])
+ 2 => CRM_Utils_Money::format($sumcontribs[$key]),
));
}
$this->assign('sectionTotals', $totalandsum);
}
}
}
-