You are here

class TextMatchField in CRM Core 7

Class for evaluating text fields.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
DefaultMatchingEngineFieldType::fieldQuery public function Field query to search matches. Overrides DefaultMatchingEngineFieldTypeInterface::fieldQuery 2
DefaultMatchingEngineFieldType::fieldRender public function Template used to render fields matching rules configuration form. Overrides DefaultMatchingEngineFieldTypeInterface::fieldRender 4
DefaultMatchingEngineFieldType::WEIGHT_DELTA constant
TextMatchField::operators public function Defines logical operators to use with this field. Overrides DefaultMatchingEngineFieldType::operators