X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FQueryFormatter.php;h=65a351e08cbb1ead864fcba330f09fdaf63daaf5;hb=23de1ac098f62001327fc1bd6aac2db04ee327a3;hp=a3577ab5da221602af0dd79f4b4a2fd8c6f813f2;hpb=29d98e1314e345f1b9044f5359c2d0a67f380d21;p=civicrm-core.git diff --git a/CRM/Utils/QueryFormatter.php b/CRM/Utils/QueryFormatter.php index a3577ab5da..65a351e08c 100644 --- a/CRM/Utils/QueryFormatter.php +++ b/CRM/Utils/QueryFormatter.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * Class CRM_Utils_QueryFormatter @@ -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, @@ -354,4 +388,5 @@ class CRM_Utils_QueryFormatter { echo $buf; } + }