protected function isColumnName($column, $allowEmpty=false)
    {
        if (is_numeric($column)) {
            return false;
        }

        if (trim($column) === '') {
            return $allowEmpty ? true : false;
        }

        return preg_match('/\w*[a-zA-Z]\w*/u', $column) > 0;
    }
protected function isColumnName($column, $allowEmpty=false)
    {
        if (is_numeric($column)) {
            return false;
        }

        if (trim($column) === '') {
            return $allowEmpty ? true : false;
        }

        return preg_match('/\w*[a-zA-Z]\w*/u', $column) > 0;
    }
protected function isColumnName ( $ column , $ allowEmpty = false ) { if ( is_numeric ( $ column ) ) { return false ; } if ( trim ( $ column ) === '' ) { return $ allowEmpty ? true : false ; } return preg_match ( '/\w*[a-zA-Z]\w*/u' , $ column ) > 0 ; }
Check if a supposed column name is really one

@param string $column
@param bool   $allowEmpty (default:false)

@return bool
Check if a supposed column name is really one