@@ 2555-2560 (lines=6) @@ | ||
2552 | //of array('Registration.TXN_ID'=>23) |
|
2553 | $query_param_sans_stars = $this->_remove_stars_and_anything_after_from_condition_query_param_key($param); |
|
2554 | if(in_array($query_param_sans_stars, $this->_logic_query_param_keys,true)){ |
|
2555 | if (! is_array($possibly_array_of_params)){ |
|
2556 | 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"), |
|
2557 | $param,$possibly_array_of_params)); |
|
2558 | }else{ |
|
2559 | $this->_extract_related_models_from_sub_params_array_keys($possibly_array_of_params, $model_query_info_carrier,$query_param_type); |
|
2560 | } |
|
2561 | }elseif($query_param_type === 0 //ie WHERE |
|
2562 | && is_array($possibly_array_of_params) |
|
2563 | && isset($possibly_array_of_params[2]) |
@@ 554-567 (lines=14) @@ | ||
551 | } else if ( method_exists( $class_name, 'instance' )) { |
|
552 | // $instantiation_mode = 3; |
|
553 | $class_obj = call_user_func_array( array( $class_name, 'instance' ), $arguments ); |
|
554 | } else if ( $reflector->isInstantiable() ) { |
|
555 | // $instantiation_mode = 4; |
|
556 | $class_obj = $reflector->newInstance( $arguments ); |
|
557 | } else if ( ! $load_only ) { |
|
558 | // heh ? something's not right ! |
|
559 | // $instantiation_mode = 5; |
|
560 | throw new EE_Error( |
|
561 | sprintf( |
|
562 | __('The %s file %s could not be instantiated.','event_espresso'), |
|
563 | $type, |
|
564 | $class_name |
|
565 | ) |
|
566 | ); |
|
567 | } |
|
568 | ||
569 | } catch ( EE_Error $e ) { |
|
570 | $e->get_error(); |