| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* This defines two actions- View and Edit.
*
* @var array
- * @static
*/
static $_links = NULL;
* We use desc to remind us what that column is, name is used in the tpl
*
* @var array
- * @static
*/
static $_columnHeaders;
/**
* Properties of contact we're interested in displaying
* @var array
- * @static
*/
static $_properties = array(
'contact_id',
* @param null $compContext
*
* @return \CRM_Contribute_Selector_Search
- * @access public
*/
- function __construct(
+ public function __construct(
&$queryParams,
$action = CRM_Core_Action::NONE,
$contributionClause = NULL,
/**
* Returns total number of rows for the query.
*
- * @param
+ * @param string $action
*
* @return int
* Total number of rows
),
);
if ($this->_includeSoftCredits) {
- self::$_columnHeaders =
- array_merge(
+ self::$_columnHeaders
+ = array_merge(
self::$_columnHeaders,
array(
array(
)
);
}
- self::$_columnHeaders =
- array_merge(
+ self::$_columnHeaders
+ = array_merge(
self::$_columnHeaders,
array(
array(
self::$_columnHeaders = array_merge($pre, self::$_columnHeaders);
}
if ($this->_includeSoftCredits) {
- self::$_columnHeaders =
- array_merge(
- self::$_columnHeaders,
+ self::$_columnHeaders = array_merge(
+ self::$_columnHeaders,
+ array(
array(
- array(
- 'name' => ts('Soft Credit For'),
- 'sort' => 'contribution_soft_credit_name',
- 'direction' => CRM_Utils_Sort::DONTCARE,
- ),
- array(
- 'name' => ts('Soft Credit Type'),
- 'sort' => 'contribution_soft_credit_type',
- 'direction' => CRM_Utils_Sort::ASCENDING,
- ),
- )
- );
+ 'name' => ts('Soft Credit For'),
+ 'sort' => 'contribution_soft_credit_name',
+ 'direction' => CRM_Utils_Sort::DONTCARE,
+ ),
+ array(
+ 'name' => ts('Soft Credit Type'),
+ 'sort' => 'contribution_soft_credit_type',
+ 'direction' => CRM_Utils_Sort::ASCENDING,
+ ),
+ )
+ );
}
- self::$_columnHeaders =
- array_merge(
+ self::$_columnHeaders
+ = array_merge(
self::$_columnHeaders, array(
array('desc' => ts('Actions')),
)
public function getSummary() {
return $this->_query->summaryContribution($this->_context);
}
+
}