protected $_caseTypeNameOrderBy = FALSE;
+ /**
+ * @var array
+ */
+ protected $caseStatuses;
+
+ /**
+ * @var array
+ */
+ protected $caseTypes;
+
+ /**
+ * @var array
+ */
+ protected $relTypes;
+
+ /**
+ * @var array
+ */
+ protected $caseActivityTypes;
+
/**
*/
public function __construct() {
- $this->case_statuses = CRM_Core_OptionGroup::values('case_status');
- $this->case_types = CRM_Case_PseudoConstant::caseType();
+ $this->caseStatuses = CRM_Core_OptionGroup::values('case_status');
+ $this->caseTypes = CRM_Case_PseudoConstant::caseType();
$rels = CRM_Core_PseudoConstant::relationshipType();
foreach ($rels as $relid => $v) {
- $this->rel_types[$relid] = $v['label_b_a'];
+ $this->relTypes[$relid] = $v['label_b_a'];
}
$this->caseActivityTypes = [];
'title' => ts('Case Role(s)'),
'type' => CRM_Utils_Type::T_INT,
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
- 'options' => $this->rel_types,
+ 'options' => $this->relTypes,
],
'is_active' => [
'title' => ts('Active Role?'),
foreach ($rows as $rowNum => $row) {
if (array_key_exists('civicrm_case_status_id', $row)) {
if ($value = $row['civicrm_case_status_id']) {
- $rows[$rowNum]['civicrm_case_status_id'] = $this->case_statuses[$value];
+ $rows[$rowNum]['civicrm_case_status_id'] = $this->caseStatuses[$value];
$entryFound = TRUE;
}
}
if (array_key_exists('civicrm_case_case_type_id', $row)) {
if ($value = str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $row['civicrm_case_case_type_id'])) {
- $rows[$rowNum]['civicrm_case_case_type_id'] = $this->case_types[$value];
+ $rows[$rowNum]['civicrm_case_case_type_id'] = $this->caseTypes[$value];
$entryFound = TRUE;
}
if ($value = $row['civicrm_relationship_case_role']) {
$caseRoles = explode(',', $value);
foreach ($caseRoles as $num => $caseRole) {
- $caseRoles[$num] = $this->rel_types[$caseRole];
+ $caseRoles[$num] = $this->relTypes[$caseRole];
}
$rows[$rowNum]['civicrm_relationship_case_role'] = implode('; ', $caseRoles);
}