| @@ 765-775 (lines=11) @@ | ||
| 762 | // get the file | |
| 763 | require_once( $path ); | |
| 764 | // if the class isn't already declared somewhere | |
| 765 | 			if ( class_exists( $class_name, false ) === false ) { | |
| 766 | // so sorry, not a class | |
| 767 | throw new EE_Error( | |
| 768 | sprintf( | |
| 769 | __( 'The %s file %s does not appear to contain the %s Class.', 'event_espresso' ), | |
| 770 | $type, | |
| 771 | $path, | |
| 772 | $class_name | |
| 773 | ) | |
| 774 | ); | |
| 775 | } | |
| 776 | ||
| 777 | 		} catch ( EE_Error $e ) { | |
| 778 | $e->get_error(); | |
| @@ 3519-3533 (lines=15) @@ | ||
| 3516 | } | |
| 3517 | $cleaned_value = $this->_construct_between_value( $value, $field_obj ); | |
| 3518 | return $operator . SP . $cleaned_value; | |
| 3519 | 		} elseif ( in_array( $operator, $this->_null_style_operators ) ) { | |
| 3520 | 			if ( $value !== null ) { | |
| 3521 | throw new EE_Error( | |
| 3522 | sprintf( | |
| 3523 | __( | |
| 3524 | "You attempted to give a value (%s) while using a NULL-style operator (%s). That isn't valid", | |
| 3525 | "event_espresso" | |
| 3526 | ), | |
| 3527 | $value, | |
| 3528 | $operator | |
| 3529 | ) | |
| 3530 | ); | |
| 3531 | } | |
| 3532 | return $operator; | |
| 3533 | 		} elseif ( $operator === 'LIKE' && ! is_array( $value ) ) { | |
| 3534 | //if the operator is 'LIKE', we want to allow percent signs (%) and not | |
| 3535 | //remove other junk. So just treat it as a string. | |
| 3536 | return $operator . SP . $this->_wpdb_prepare_using_field( $value, '%s' ); | |
| @@ 3539-3550 (lines=12) @@ | ||
| 3536 | return $operator . SP . $this->_wpdb_prepare_using_field( $value, '%s' ); | |
| 3537 | 		} elseif ( ! in_array( $operator, $this->_in_style_operators ) && ! is_array( $value ) ) { | |
| 3538 | return $operator . SP . $this->_wpdb_prepare_using_field( $value, $field_obj ); | |
| 3539 | 		} elseif ( in_array( $operator, $this->_in_style_operators ) && ! is_array( $value ) ) { | |
| 3540 | throw new EE_Error( | |
| 3541 | sprintf( | |
| 3542 | __( | |
| 3543 | 						"Operator '%s' must be used with an array of values, eg 'Registration.REG_ID' => array('%s',array(1,2,3))", | |
| 3544 | 'event_espresso' | |
| 3545 | ), | |
| 3546 | $operator, | |
| 3547 | $operator | |
| 3548 | ) | |
| 3549 | ); | |
| 3550 | 		} elseif ( ! in_array( $operator, $this->_in_style_operators ) && is_array( $value ) ) { | |
| 3551 | throw new EE_Error( | |
| 3552 | sprintf( | |
| 3553 | __( | |