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)";
) {
$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);