/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
/**
*
*/
- function __construct() {
+ public function __construct() {
$this->case_statuses = CRM_Core_OptionGroup::values('case_status');
$this->case_types = CRM_Case_PseudoConstant::caseType();
$rels = CRM_Core_PseudoConstant::relationshipType();
$this->deleted_labels = array(
'' => ts('- select -'),
0 => ts('No'),
- 1 => ts('Yes')
+ 1 => ts('Yes'),
);
$this->caseActivityTypes = array();
parent::__construct();
}
- function preProcess() {
+ public function preProcess() {
parent::preProcess();
}
- function buildQuickForm() {
+ public function buildQuickForm() {
parent::buildQuickForm();
$this->caseDetailSpecialColumnsAdd();
}
- function caseDetailSpecialColumnsAdd() {
+ public function caseDetailSpecialColumnsAdd() {
$elements = array();
$elements[] = &$this->createElement('select', 'case_activity_all_dates', NULL,
array(
- '' => ts('- select -')
+ '' => ts('- select -'),
) + $this->caseActivityTypes
);
$this->addGroup($elements, 'case_detail_extra');
$this->assign('caseDetailExtra', $this->_caseDetailExtra);
}
- function select() {
+ public function select() {
$select = array();
$this->_columnHeaders = array();
foreach ($this->_columns as $tableName => $table) {
$this->_select = 'SELECT ' . implode(', ', $select) . ' ';
}
- function from() {
+ public function from() {
$case = $this->_aliases['civicrm_case'];
$conact = $this->_aliases['civicrm_contact'];
}
}
- function where() {
+ public function where() {
$clauses = array();
$this->_having = '';
foreach ($this->_columns as $tableName => $table) {
}
}
- function groupBy() {
+ public function groupBy() {
$this->_groupBy = " GROUP BY {$this->_aliases['civicrm_case']}.id";
}
*
* @return array
*/
- function statistics(&$rows) {
+ public function statistics(&$rows) {
$statistics = parent::statistics($rows);
$select = "select COUNT( DISTINCT( {$this->_aliases['civicrm_address']}.country_id))";
foreach ($statistics['filters'] as $id => $value) {
if ($value['title'] == 'Case Type') {
$statistics['filters'][$id]['value'] = 'Is ' .
- $this->case_types[substr($statistics['filters'][$id]
- ['value'], -3, -2
+ $this->case_types[substr($statistics['filters'][$id]['value'], -3, -2
)];
}
}
return $statistics;
}
- function orderBy() {
+ public function orderBy() {
$this->_orderBy = " ORDER BY {$this->_aliases['civicrm_case']}.start_date DESC ";
}
- function caseDetailSpecialColumnProcess() {
+ public function caseDetailSpecialColumnProcess() {
if (!$this->_includeCaseDetailExtra) {
return;
}
$this->_from .= ' ' . implode(' ', $from) . ' ';
}
- function postProcess() {
+ public function postProcess() {
$this->beginPostProcess();
$this->endPostProcess($rows);
}
- function checkEnabledFields() {
+ public function checkEnabledFields() {
if (isset($this->_params['worldregion_id_value']) &&
!empty($this->_params['worldregion_id_value'])
) {
/**
* @param $rows
*/
- function alterDisplay(&$rows) {
+ public function alterDisplay(&$rows) {
$entryFound = FALSE;
$activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, TRUE);
}
}
}
-