| @@ 3039-3041 (lines=3) @@ | ||
| 3036 | 'minimum', |
|
| 3037 | 'none' |
|
| 3038 | ); |
|
| 3039 | if( ! in_array($use_default_where_conditions,$allowed_used_default_where_conditions_values)){ |
|
| 3040 | 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))); |
|
| 3041 | } |
|
| 3042 | $universal_query_params = array(); |
|
| 3043 | if( $use_default_where_conditions === 'all' || $use_default_where_conditions === 'this_model_only' ){ |
|
| 3044 | $universal_query_params = $this->_get_default_where_conditions(); |
|
| @@ 4935-4946 (lines=12) @@ | ||
| 4932 | */ |
|
| 4933 | static public function verify_is_valid_cap_context( $context ) { |
|
| 4934 | $valid_cap_contexts = EEM_Base::valid_cap_contexts(); |
|
| 4935 | if( in_array( $context, $valid_cap_contexts ) ) { |
|
| 4936 | return true; |
|
| 4937 | }else{ |
|
| 4938 | throw new EE_Error( |
|
| 4939 | sprintf( |
|
| 4940 | __( 'Context "%1$s" passed into model "%2$s" is not a valid context. They are: %3$s', 'event_espresso' ), |
|
| 4941 | $context, |
|
| 4942 | 'EEM_Base' , |
|
| 4943 | implode(',', $valid_cap_contexts ) |
|
| 4944 | ) |
|
| 4945 | ); |
|
| 4946 | } |
|
| 4947 | } |
|
| 4948 | ||
| 4949 | /** |
|
| @@ 688-698 (lines=11) @@ | ||
| 685 | // don't give up! you gotta... |
|
| 686 | try { |
|
| 687 | //does the file exist and can it be read ? |
|
| 688 | if ( ! $path ) { |
|
| 689 | // so sorry, can't find the file |
|
| 690 | throw new EE_Error ( |
|
| 691 | sprintf( |
|
| 692 | __( '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' ), |
|
| 693 | trim( $type, '.' ), |
|
| 694 | $class_name, |
|
| 695 | '<br />' . implode( ',<br />', $file_paths ) |
|
| 696 | ) |
|
| 697 | ); |
|
| 698 | } |
|
| 699 | // get the file |
|
| 700 | require_once( $path ); |
|
| 701 | // if the class isn't already declared somewhere |
|