}
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_case.{$name}", $op, $value, "Integer");
- $query->_qill[$grouping][] = self::getQillValue('CRM_Case_DAO_Case', $name, $value, $op, $label);
+ $query->_qill[$grouping][] = CRM_Contact_BAO_Query::getQillValue('CRM_Case_DAO_Case', $name, $value, $op, $label);
$query->_tables['civicrm_case'] = $query->_whereTables['civicrm_case'] = 1;
return;
case 'case_subject':
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_case.subject", $op, $value, 'String');
- $query->_qill[$grouping][] = self::getQillValue('CRM_Case_DAO_Case', $name, $value, $op, 'Case Subject');
+ $query->_qill[$grouping][] = CRM_Contact_BAO_Query::getQillValue('CRM_Case_DAO_Case', $name, $value, $op, 'Case Subject');
$query->_tables['civicrm_case'] = $query->_whereTables['civicrm_case'] = 1;
$query->_tables['civicrm_case_contact'] = $query->_whereTables['civicrm_case_contact'] = 1;
return;
return $from;
}
- /**
- * Get the qill (search description for field) for the specified field.
- *
- * @todo this is private because it is the first step towards generalising rather than
- * the final product IMHO.
- *
- * @param string $daoName
- * @param string $name
- * @param string $value
- * @param string|array $op
- * @param string $label
- *
- * @return string
- */
- private static function getQillValue($daoName, string $name, $value, $op, string $label) {
- list($op, $value) = CRM_Contact_BAO_Query::buildQillForFieldValue($daoName, $name, $value, $op);
- return ts('%1 %2 %3', [1 => $label, 2 => $op, 3 => $value]);
- }
-
/**
* Getter for the qill object.
*
return [CRM_Utils_Array::value($op, $qillOperators, $op), $fieldValue];
}
+ /**
+ * Get the qill (search description for field) for the specified field.
+ *
+ * @param string $daoName
+ * @param string $name
+ * @param string $value
+ * @param string|array $op
+ * @param string $label
+ *
+ * @return string
+ */
+ public static function getQillValue($daoName, string $name, $value, $op, string $label) {
+ list($op, $value) = self::buildQillForFieldValue($daoName, $name, $value, $op);
+ return ts('%1 %2 %3', [1 => $label, 2 => $op, 3 => $value]);
+ }
+
/**
* Alter value to reflect wildcard settings.
*
FROM (
SELECT civicrm_contribution.total_amount, civicrm_contribution.currency
$from
- $where AND civicrm_contribution.cancel_date IS NOT NULL
+ $where AND civicrm_contribution.cancel_date IS NOT NULL
GROUP BY civicrm_contribution.id
) as conts
GROUP BY currency";