X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FQueryFormatter.php;h=14694b1cf2dfd7c3580b0efc5ccad75a7c836c85;hb=c5f5f99a9ec5c80e62dd245b345231c4f1a05a78;hp=81023a58c0fbc9ba70298009837a5960fcbb0788;hpb=414b3228db09432f1e389a89f9fb9e3f22d0f2da;p=civicrm-core.git diff --git a/CRM/Utils/QueryFormatter.php b/CRM/Utils/QueryFormatter.php index 81023a58c0..14694b1cf2 100644 --- a/CRM/Utils/QueryFormatter.php +++ b/CRM/Utils/QueryFormatter.php @@ -144,6 +144,14 @@ class CRM_Utils_QueryFormatter { return $text; } + /** + * Format Fts. + * + * @param string $text + * @param $mode + * + * @return mixed + */ protected function _formatFts($text, $mode) { $result = NULL; @@ -187,6 +195,14 @@ class CRM_Utils_QueryFormatter { return $this->dedupeWildcards($result, '%'); } + /** + * Format FTS. + * + * @param string $text + * @param $mode + * + * @return mixed + */ protected function _formatFtsBool($text, $mode) { $result = NULL; @@ -238,6 +254,14 @@ class CRM_Utils_QueryFormatter { return $this->dedupeWildcards($result, '%'); } + /** + * Format like. + * + * @param $text + * @param $mode + * + * @return mixed + */ protected function _formatLike($text, $mode) { $result = NULL; @@ -309,6 +333,11 @@ class CRM_Utils_QueryFormatter { return $text; } + /** + * Get modes. + * + * @return array + */ public static function getModes() { return array( self::MODE_NONE, @@ -319,6 +348,11 @@ class CRM_Utils_QueryFormatter { ); } + /** + * Get languages. + * + * @return array + */ public static function getLanguages() { return array( self::LANG_SOLR,