+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2017
*/
class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event {
public $_drilldownReport = array('event/income' => 'Link to Detail Report');
/**
- */
- /**
+ * Class constructor.
*/
public function __construct() {
'options' => CRM_Core_OptionGroup::values('event_type'),
),
'event_start_date' => array(
- 'title' => 'Event Start Date',
+ 'title' => ts('Event Start Date'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
'event_end_date' => array(
- 'title' => 'Event End Date',
+ 'title' => ts('Event End Date'),
'operatorType' => CRM_Report_Form::OP_DATE,
),
),
$this->_participantWhere
GROUP BY civicrm_participant.event_id,
- civicrm_participant.status_id,
- civicrm_participant.fee_currency";
+ civicrm_participant.status_id";
$info = CRM_Core_DAO::executeQuery($sql);
$participant_data = $participant_info = $currency = array();
}
}
- $statusType1 = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 1');
- $statusType2 = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 0');
+ $statusType1 = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 1', 'label');
+ $statusType2 = CRM_Event_PseudoConstant::participantStatus(NULL, 'is_counted = 0', 'label');
//make column header for participant status Registered/Attended
$type1_header = implode('/', $statusType1);
'type' => CRM_Utils_Type::T_INT,
);
$this->_columnHeaders['totalAmount'] = array(
- 'title' => 'Total Income',
+ 'title' => ts('Total Income'),
'type' => CRM_Utils_Type::T_STRING,
);
}