CRM_Utils_QueryFormatter - Cleanup, docs
authorTim Otten <totten@civicrm.org>
Tue, 28 Jun 2016 22:10:19 +0000 (15:10 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 28 Jun 2016 22:10:47 +0000 (15:10 -0700)
CRM/Utils/QueryFormatter.php

index 6c48b1b38547a04bfa82aa7fd07728f36b5876f8..63c48386badad2336bbd23e710bf78ac84f4f415 100644 (file)
  * or in vain.
  */
 class CRM_Utils_QueryFormatter {
+  /**
+   * Generate queries using SQL LIKE expressions.
+   */
   const LANG_SQL_LIKE = 'like';
+
+  /**
+   * Generate queries using MySQL FTS expressions.
+   */
   const LANG_SQL_FTS = 'fts';
+
+  /**
+   * Generate queries using MySQL's boolean FTS expressions.
+   */
   const LANG_SQL_FTSBOOL = 'ftsbool';
+
+  /**
+   * Generate queries using Solr expressions.
+   */
   const LANG_SOLR = 'solr';
 
   /**
@@ -325,7 +340,6 @@ class CRM_Utils_QueryFormatter {
       $parts[1] = stristr($parts[1], '.', TRUE);
       $text = implode(' ', $parts);
     }
-    //CRM_Core_Error::debug_var('parseWords $text', $text);
 
     //NYSS also replace other occurrences of @
     return explode(' ', preg_replace('/[ \r\n\t\@]+/', ' ', trim($text)));