<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
}
/**
+ * Alter display of rows.
+ *
+ * Iterate through the rows retrieved via SQL and make changes for display purposes,
+ * such as rendering contacts as links.
+ *
* @param array $rows
+ * Rows generated by SQL, with an array for each row.
*/
public function alterDisplay(&$rows) {
parent::alterDisplay($rows);
'alter_display' => 'alterContributionType',
),
'payment_instrument_id' => array(
- 'title' => ts('Payment Instrument'),
+ 'title' => ts('Payment Method'),
'alter_display' => 'alterPaymentType',
),
'source' => array('title' => 'Contribution Source'),
),
'order_bys' => array(
'payment_instrument_id' => array(
- 'title' => ts('Payment Instrument'),
+ 'title' => ts('Payment Method'),
),
'financial_type_id' => array(
'title' => ts('Financial Type'),
),
'group_bys' => array(
'financial_type_id' => array('title' => ts('Financial Type')),
- 'payment_instrument_id' => array('title' => ts('Payment Instrument')),
+ 'payment_instrument_id' => array('title' => ts('Payment Method')),
'contribution_id' => array(
'title' => ts('Individual Contribution'),
'name' => 'id',
}
/**
- * Get address columns to add to array
+ * Get address columns to add to array.
*
* @param array $options
* Options for the report.
}
/**
- * Get Information about advertised Joins
+ * Get Information about advertised Joins.
*
* @return array
*/
}
/**
- * Define join from line item table to participant table
+ * Define join from line item table to participant table.
*/
public function joinParticipantFromLineItem() {
$this->_from .= " LEFT JOIN civicrm_participant {$this->_aliases['civicrm_participant']}
}
/**
- * Define join from Participant to Contribution table
+ * Define join from Participant to Contribution table.
*/
public function joinContributionFromParticipant() {
$this->_from .= " LEFT JOIN civicrm_participant_payment pp
}
/**
- * Define join from Membership to Contribution table
+ * Define join from Membership to Contribution table.
*/
public function joinContributionFromMembership() {
$this->_from .= " LEFT JOIN civicrm_membership_payment pp
}
/**
- * Retrieve text for financial type from pseudoconstant
+ * Retrieve text for financial type from pseudoconstant.
*
* @param $value
* @param array $row
}
$contactID = $row['civicrm_contact_id'];
return "<div id=contact-{$contactID} class='crm-entity'>
- <span class='crm-editable crmf-nick_name crm-editable-enabled' data-action='create'>
+ <span class='crm-editable crmf-nick_name crm-editable-enabled'>
" . $value . "</span></div>";
}
/**
- * Retrieve text for contribution type from pseudoconstant
+ * Retrieve text for contribution type from pseudoconstant.
*
* @param $value
* @param array $row
}
/**
- * Retrieve text for contribution status from pseudoconstant
+ * Retrieve text for contribution status from pseudoconstant.
*
* @param $value
* @param array $row
}
/**
- * Retrieve text for payment instrument from pseudoconstant
+ * Retrieve text for payment instrument from pseudoconstant.
*
* @param $value
* @param array $row