You are here

public function DateMatchField::operators in CRM Core 7

Defines logical operators to use with this field.

This operators would be interpreted in fieldQuery() method.

Parameters

array $field_info: Array returned by field_info_field($field_name).

Return value

array Assoc array of operators.

Overrides DefaultMatchingEngineFieldType::operators

File

modules/crm_core_default_matching_engine/includes/DateMatchField.inc, line 24
Implementation of DefaultMatchingEngineFieldTypeInterface for date fields.

Class

DateMatchField
Class for evaluating date fields.

Code

public function operators($field_info = NULL) {
  $operators = array(
    '=' => t('Equals'),
    '>=' => t('Greater than'),
    '<=' => t('Less than'),
  );
  return $operators;
}