@@ 2547-2552 (lines=6) @@ | ||
2544 | //of array('Registration.TXN_ID'=>23) |
|
2545 | $query_param_sans_stars = $this->_remove_stars_and_anything_after_from_condition_query_param_key($param); |
|
2546 | if(in_array($query_param_sans_stars, $this->_logic_query_param_keys,true)){ |
|
2547 | if (! is_array($possibly_array_of_params)){ |
|
2548 | throw new EE_Error(sprintf(__("You used a special where query param %s, but the value isn't an array of where query params, it's just %s'. It should be an array, eg array('EVT_ID'=>23,'OR'=>array('Venue.VNU_ID'=>32,'Venue.VNU_name'=>'monkey_land'))", "event_espresso"), |
|
2549 | $param,$possibly_array_of_params)); |
|
2550 | }else{ |
|
2551 | $this->_extract_related_models_from_sub_params_array_keys($possibly_array_of_params, $model_query_info_carrier,$query_param_type); |
|
2552 | } |
|
2553 | }elseif($query_param_type === 0 //ie WHERE |
|
2554 | && is_array($possibly_array_of_params) |
|
2555 | && isset($possibly_array_of_params[2]) |
@@ 718-731 (lines=14) @@ | ||
715 | } else if ( method_exists( $class_name, 'instance' ) ) { |
|
716 | //$instantiation_mode = "instance"; |
|
717 | $class_obj = call_user_func_array( array( $class_name, 'instance' ), $arguments ); |
|
718 | } else if ( $reflector->isInstantiable() ) { |
|
719 | //$instantiation_mode = "isInstantiable"; |
|
720 | $class_obj = $reflector->newInstanceArgs( $arguments ); |
|
721 | } else if ( ! $load_only ) { |
|
722 | // heh ? something's not right ! |
|
723 | //$instantiation_mode = 'none'; |
|
724 | throw new EE_Error( |
|
725 | sprintf( |
|
726 | __( 'The %s file %s could not be instantiated.', 'event_espresso' ), |
|
727 | $type, |
|
728 | $class_name |
|
729 | ) |
|
730 | ); |
|
731 | } |
|
732 | } catch ( EE_Error $e ) { |
|
733 | $e->get_error(); |
|
734 | } |