class TextMatchField in CRM Core 7
Class for evaluating text fields.
Hierarchy
- class \DefaultMatchingEngineFieldType implements DefaultMatchingEngineFieldTypeInterface
- class \TextMatchField
Expanded class hierarchy of TextMatchField
File
- modules/
crm_core_default_matching_engine/ includes/ TextMatchField.inc, line 11 - Implementation of DefaultMatchingEngineFieldTypeInterface for text fields.
View source
class TextMatchField extends DefaultMatchingEngineFieldType {
/**
* Defines logical operators to use with this field.
*
* This operators would be interpreted in fieldQuery() method.
*
* @return array
* Assoc array of operators.
*/
public function operators() {
return array(
'equals' => t('Equals'),
'starts' => t('Starts with'),
'ends' => t('Ends with'),
'contains' => t('Contains'),
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DefaultMatchingEngineFieldType:: |
public | function |
Field query to search matches. Overrides DefaultMatchingEngineFieldTypeInterface:: |
2 |
DefaultMatchingEngineFieldType:: |
public | function |
Template used to render fields matching rules configuration form. Overrides DefaultMatchingEngineFieldTypeInterface:: |
4 |
DefaultMatchingEngineFieldType:: |
constant | |||
TextMatchField:: |
public | function |
Defines logical operators to use with this field. Overrides DefaultMatchingEngineFieldType:: |