<?php
-
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*/
class CRM_Report_Form_Contribute_PCP extends CRM_Report_Form {
/**
- *
*/
/**
- *
*/
- function __construct() {
+ public function __construct() {
$this->_columns = array(
'civicrm_contact' => array(
'dao' => 'CRM_Contact_DAO_Contact',
parent::__construct();
}
- function from() {
+ public function from() {
$this->_from = "
FROM civicrm_pcp {$this->_aliases['civicrm_pcp']}
{$this->_aliases['civicrm_contribution_page']}.id";
}
- function groupBy() {
+ public function groupBy() {
$this->_groupBy = "GROUP BY {$this->_aliases['civicrm_pcp']}.id";
}
- function orderBy() {
+ public function orderBy() {
$this->_orderBy = " ORDER BY {$this->_aliases['civicrm_contact']}.sort_name ";
}
- function where() {
+ public function where() {
$whereClauses = $havingClauses = array();
foreach ($this->_columns as $tableName => $table) {
*
* @return array
*/
- function statistics(&$rows) {
+ public function statistics(&$rows) {
$statistics = parent::statistics($rows);
$select =
$statistics['counts']['goal_total'] = array(
'title' => ts('Goal Total'),
'value' => $dao->goal_total,
- 'type' => CRM_Utils_Type::T_MONEY
+ 'type' => CRM_Utils_Type::T_MONEY,
);
$statistics['counts']['committed_total'] = array(
'title' => ts('Total Committed'),
'value' => $dao->committed_total,
- 'type' => CRM_Utils_Type::T_MONEY
+ 'type' => CRM_Utils_Type::T_MONEY,
);
$statistics['counts']['received_total'] = array(
'title' => ts('Total Received'),
'value' => $dao->received_total,
- 'type' => CRM_Utils_Type::T_MONEY
+ 'type' => CRM_Utils_Type::T_MONEY,
);
$statistics['counts']['donors_total'] = array(
'title' => ts('Total Donors'),
'value' => $dao->donors_total,
- 'type' => CRM_Utils_Type::T_INT
+ 'type' => CRM_Utils_Type::T_INT,
);
return $statistics;
}
/**
* @param $rows
*/
- function alterDisplay(&$rows) {
+ public function alterDisplay(&$rows) {
// custom code to alter rows
$entryFound = FALSE;
$checkList = array();
}
}
}
-