| @@ 3048-3050 (lines=3) @@ | ||
| 3045 | 'minimum', |
|
| 3046 | 'none' |
|
| 3047 | ); |
|
| 3048 | if( ! in_array($use_default_where_conditions,$allowed_used_default_where_conditions_values)){ |
|
| 3049 | throw new EE_Error(sprintf(__("You passed an invalid value to the query parameter 'default_where_conditions' of '%s'. Allowed values are %s", "event_espresso"),$use_default_where_conditions,implode(", ",$allowed_used_default_where_conditions_values))); |
|
| 3050 | } |
|
| 3051 | $universal_query_params = array(); |
|
| 3052 | if( $use_default_where_conditions === 'all' || $use_default_where_conditions === 'this_model_only' ){ |
|
| 3053 | $universal_query_params = $this->_get_default_where_conditions(); |
|
| @@ 4967-4978 (lines=12) @@ | ||
| 4964 | */ |
|
| 4965 | static public function verify_is_valid_cap_context( $context ) { |
|
| 4966 | $valid_cap_contexts = EEM_Base::valid_cap_contexts(); |
|
| 4967 | if( in_array( $context, $valid_cap_contexts ) ) { |
|
| 4968 | return true; |
|
| 4969 | }else{ |
|
| 4970 | throw new EE_Error( |
|
| 4971 | sprintf( |
|
| 4972 | __( 'Context "%1$s" passed into model "%2$s" is not a valid context. They are: %3$s', 'event_espresso' ), |
|
| 4973 | $context, |
|
| 4974 | 'EEM_Base' , |
|
| 4975 | implode(',', $valid_cap_contexts ) |
|
| 4976 | ) |
|
| 4977 | ); |
|
| 4978 | } |
|
| 4979 | } |
|
| 4980 | ||
| 4981 | /** |
|
| @@ 759-769 (lines=11) @@ | ||
| 756 | // don't give up! you gotta... |
|
| 757 | try { |
|
| 758 | //does the file exist and can it be read ? |
|
| 759 | if ( ! $path ) { |
|
| 760 | // so sorry, can't find the file |
|
| 761 | throw new EE_Error ( |
|
| 762 | sprintf( |
|
| 763 | __( 'The %1$s file %2$s could not be located or is not readable due to file permissions. Please ensure that the following filepath(s) are correct: %3$s', 'event_espresso' ), |
|
| 764 | trim( $type, '.' ), |
|
| 765 | $class_name, |
|
| 766 | '<br />' . implode( ',<br />', $file_paths ) |
|
| 767 | ) |
|
| 768 | ); |
|
| 769 | } |
|
| 770 | // get the file |
|
| 771 | require_once( $path ); |
|
| 772 | // if the class isn't already declared somewhere |
|