<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
public $_drilldownReport = array('contribute/detail' => 'Link to Detail Report');
/**
- *
*/
/**
- *
*/
- function __construct() {
+ public function __construct() {
// Check if CiviCampaign is a) enabled and b) has active campaigns
$config = CRM_Core_Config::singleton();
'filters' => array(
'sort_name' => array(
'name' => 'sort_name',
- 'title' => ts('Soft Credit Name')
+ 'title' => ts('Soft Credit Name'),
),
),
'grouping' => 'contact-fields',
),
'civicrm_financial_type' => array(
'dao' => 'CRM_Financial_DAO_FinancialType',
- 'fields' => array('financial_type' => NULL,),
+ 'fields' => array('financial_type' => NULL),
'filters' => array(
'id' => array(
'name' => 'id',
'title' => ts('Financial Type'),
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
- 'options' => CRM_Contribute_PseudoConstant::financialType()
+ 'options' => CRM_Contribute_PseudoConstant::financialType(),
),
),
'grouping' => 'softcredit-fields',
parent::__construct();
}
- function preProcess() {
+ public function preProcess() {
parent::preProcess();
}
- function select() {
+ public function select() {
$select = array();
$this->_columnHeaders = array();
foreach ($this->_columns as $tableName => $table) {
*
* @return array
*/
- static function formRule($fields, $files, $self) {
+ public static function formRule($fields, $files, $self) {
$errors = $grouping = array();
return $errors;
}
- function from() {
+ public function from() {
$alias_constituent = 'constituentname';
$alias_creditor = 'contact_civireport';
$this->_from = "
}
}
- function groupBy() {
+ public function groupBy() {
$this->_rollup = 'WITH ROLLUP';
$this->_groupBy = "
GROUP BY {$this->_aliases['civicrm_contribution_soft']}.contact_id, constituentname.id {$this->_rollup}";
}
- function where() {
+ public function where() {
parent::where();
$this->_where .= " AND {$this->_aliases['civicrm_contribution']}.is_test = 0 ";
}
*
* @return array
*/
- function statistics(&$rows) {
+ public function statistics(&$rows) {
$statistics = parent::statistics($rows);
$select = "
return $statistics;
}
- function postProcess() {
+ public function postProcess() {
$this->beginPostProcess();
$this->buildACLClause(array('constituentname', 'contact_civireport'));
/**
* @param $rows
*/
- function alterDisplay(&$rows) {
+ public function alterDisplay(&$rows) {
// custom code to alter rows
$entryFound = FALSE;
$this->removeDuplicates($rows);
}
}
-