*
* @return bool
*/
- public static function mysqlColumnName($str) {
+ public static function mysqlColumnNameLoose($str) {
// check the length.
// This check can be incorrect for the <table>.<column> format, which can be
// a problem.
*
* @return bool
*/
- public static function mysqlColumnNameStrict($str) {
+ public static function mysqlColumnName($str) {
// Check the length.
if (empty($str) || strlen($str) > 64) {
return FALSE;
}
break;
- case 'MysqlColumnName':
- if (CRM_Utils_Rule::MysqlColumnName($data)) {
+ case 'MysqlColumnNameLoose':
+ if (CRM_Utils_Rule::mysqlColumnNameLoose($data)) {
return str_replace('`', '', $data);
}
break;
- case 'MysqlColumnNameStrict':
- if (CRM_Utils_Rule::MysqlColumnNameStrict($data)) {
+ case 'MysqlColumnName':
+ if (CRM_Utils_Rule::mysqlColumnName($data)) {
return $data;
}
break;
case 'MysqlOrderByDirection':
- if (CRM_Utils_Rule::MysqlOrderByDirection($data)) {
+ if (CRM_Utils_Rule::mysqlOrderByDirection($data)) {
return $data;
}
break;