You are here

public function DefaultMatchingEngineFieldType::operators in CRM Core 7

Each field handler MUST implement this method.

Must return associative array of supported operators for current field. By default now supports only this keys: 'equals', 'starts', 'ends', 'contains'. In case you need additional operators you must implement this method and DefaultMatchingEngineFieldTypeInterface::fieldQuery.

Return value

array Assoc array, keys must be

Overrides DefaultMatchingEngineFieldTypeInterface::operators

1 call to DefaultMatchingEngineFieldType::operators()
DefaultMatchingEngineFieldType::fieldRender in modules/crm_core_default_matching_engine/includes/DefaultMatchingEngine.inc
Template used to render fields matching rules configuration form.
4 methods override DefaultMatchingEngineFieldType::operators()
DateMatchField::operators in modules/crm_core_default_matching_engine/includes/DateMatchField.inc
Defines logical operators to use with this field.
SelectMatchField::operators in modules/crm_core_default_matching_engine/includes/SelectMatchField.inc
Defines logical operators to use with this field.
TextMatchField::operators in modules/crm_core_default_matching_engine/includes/TextMatchField.inc
Defines logical operators to use with this field.
UnsupportedFieldMatchField::operators in modules/crm_core_default_matching_engine/includes/DefaultMatchingEngine.inc
Each field handler MUST implement this method.

File

modules/crm_core_default_matching_engine/includes/DefaultMatchingEngine.inc, line 252

Class

DefaultMatchingEngineFieldType

Code

public function operators() {
}