@@ 2714-2724 (lines=11) @@ | ||
2711 | ||
2712 | //now, just verify they didn't pass anything wack |
|
2713 | foreach($query_params as $query_key => $query_value){ |
|
2714 | if( ! in_array($query_key,$this->_allowed_query_params,true)){ |
|
2715 | throw new EE_Error( |
|
2716 | sprintf( |
|
2717 | __("You passed %s as a query parameter to %s, which is illegal! The allowed query parameters are %s",'event_espresso'), |
|
2718 | $query_key, |
|
2719 | get_class($this), |
|
2720 | // print_r( $this->_allowed_query_params, TRUE ) |
|
2721 | implode( ',', $this->_allowed_query_params ) |
|
2722 | ) |
|
2723 | ); |
|
2724 | } |
|
2725 | } |
|
2726 | $main_model_join_sql = $query_object->get_main_model_join_sql(); |
|
2727 | if ( empty( $main_model_join_sql ) ) |
|
@@ 3314-3316 (lines=3) @@ | ||
3311 | if($field_obj instanceof EE_Model_Field_Base){ |
|
3312 | return $wpdb->prepare($field_obj->get_wpdb_data_type(),$this->_prepare_value_for_use_in_db($value, $field_obj)); |
|
3313 | }else{//$field_obj should really just be a data type |
|
3314 | if( ! in_array($field_obj,$this->_valid_wpdb_data_types)){ |
|
3315 | throw new EE_Error(sprintf(__("%s is not a valid wpdb datatype. Valid ones are %s", "event_espresso"),$field_obj,implode(",",$this->_valid_wpdb_data_types))); |
|
3316 | } |
|
3317 | return $wpdb->prepare($field_obj,$value); |
|
3318 | } |
|
3319 | } |