You are here

public function TextMatchField::operators in CRM Core 7

Defines logical operators to use with this field.

This operators would be interpreted in fieldQuery() method.

Return value

array Assoc array of operators.

Overrides DefaultMatchingEngineFieldType::operators

File

modules/crm_core_default_matching_engine/includes/TextMatchField.inc, line 21
Implementation of DefaultMatchingEngineFieldTypeInterface for text fields.

Class

TextMatchField
Class for evaluating text fields.

Code

public function operators() {
  return array(
    'equals' => t('Equals'),
    'starts' => t('Starts with'),
    'ends' => t('Ends with'),
    'contains' => t('Contains'),
  );
}