You are here

TextMatchField.inc in CRM Core 7

Implementation of DefaultMatchingEngineFieldTypeInterface for text fields.

File

modules/crm_core_default_matching_engine/includes/TextMatchField.inc
View source
<?php

/**
 * @file
 * Implementation of DefaultMatchingEngineFieldTypeInterface for text fields.
 */

/**
 * Class for evaluating text fields.
 */
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'),
    );
  }

}

Classes

Namesort descending Description
TextMatchField Class for evaluating text fields.