'pieChart' => 'Pie Chart',
);
public $_drilldownReport = array('pledge/summary' => 'Link to Detail Report');
-
+
protected $_customGroupExtends = array(
'Pledge');
-
+
function __construct() {
$this->_columns = array(
'civicrm_contact' =>
array(
'pledge_create_date' =>
array(
- 'title' => 'Pledge Made',
+ 'title' => ts('Pledge Made'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
'currency' =>
$this->_from = "
FROM civicrm_contact {$this->_aliases['civicrm_contact']} {$this->_aclFrom}
- INNER JOIN civicrm_pledge {$this->_aliases['civicrm_pledge']}
+ INNER JOIN civicrm_pledge {$this->_aliases['civicrm_pledge']}
ON ({$this->_aliases['civicrm_pledge']}.contact_id =
- {$this->_aliases['civicrm_contact']}.id) AND
+ {$this->_aliases['civicrm_contact']}.id) AND
{$this->_aliases['civicrm_pledge']}.status_id IN ( {$statusIds} )
LEFT JOIN civicrm_pledge_payment {$this->_aliases['civicrm_pledge_payment']}
ON ({$this->_aliases['civicrm_pledge']}.id =
// include address field if address column is to be included
if ($this->_addressField) {
$this->_from .= "
- LEFT JOIN civicrm_address {$this->_aliases['civicrm_address']}
- ON ({$this->_aliases['civicrm_contact']}.id =
+ LEFT JOIN civicrm_address {$this->_aliases['civicrm_address']}
+ ON ({$this->_aliases['civicrm_contact']}.id =
{$this->_aliases['civicrm_address']}.contact_id) AND
{$this->_aliases['civicrm_address']}.is_primary = 1\n";
}
// include email field if email column is to be included
if ($this->_emailField) {
$this->_from .= "
- LEFT JOIN civicrm_email {$this->_aliases['civicrm_email']}
- ON ({$this->_aliases['civicrm_contact']}.id =
- {$this->_aliases['civicrm_email']}.contact_id) AND
+ LEFT JOIN civicrm_email {$this->_aliases['civicrm_email']}
+ ON ({$this->_aliases['civicrm_contact']}.id =
+ {$this->_aliases['civicrm_email']}.contact_id) AND
{$this->_aliases['civicrm_email']}.is_primary = 1\n";
}
}
function groupBy() {
$this->_groupBy = "
- GROUP BY {$this->_aliases['civicrm_pledge']}.contact_id,
+ GROUP BY {$this->_aliases['civicrm_pledge']}.contact_id,
{$this->_aliases['civicrm_pledge']}.id,
{$this->_aliases['civicrm_pledge']}.currency";
}
//handle the Financial Type Ids
if (array_key_exists('civicrm_pledge_financial_type_id', $row)) {
if ($value = $row['civicrm_pledge_financial_type_id']) {
- $rows[$rowNum]['civicrm_pledge_financial_type_id'] =
+ $rows[$rowNum]['civicrm_pledge_financial_type_id'] =
CRM_Contribute_PseudoConstant::financialType($value, false);
}
$entryFound = TRUE;