| @@ 3472-3474 (lines=3) @@ | ||
| 3469 | $where_query_params = array() |
|
| 3470 | ) { |
|
| 3471 | $allowed_used_default_where_conditions_values = EEM_Base::valid_default_where_conditions(); |
|
| 3472 | if (! in_array($use_default_where_conditions, $allowed_used_default_where_conditions_values)) { |
|
| 3473 | throw new EE_Error(sprintf(__("You passed an invalid value to the query parameter 'default_where_conditions' of '%s'. Allowed values are %s", |
|
| 3474 | "event_espresso"), $use_default_where_conditions, |
|
| 3475 | implode(", ", $allowed_used_default_where_conditions_values))); |
|
| 3476 | } |
|
| 3477 | $universal_query_params = array(); |
|
| @@ 5794-5805 (lines=12) @@ | ||
| 5791 | static public function verify_is_valid_cap_context($context) |
|
| 5792 | { |
|
| 5793 | $valid_cap_contexts = EEM_Base::valid_cap_contexts(); |
|
| 5794 | if (in_array($context, $valid_cap_contexts)) { |
|
| 5795 | return true; |
|
| 5796 | } else { |
|
| 5797 | throw new EE_Error( |
|
| 5798 | sprintf( |
|
| 5799 | __('Context "%1$s" passed into model "%2$s" is not a valid context. They are: %3$s', |
|
| 5800 | 'event_espresso'), |
|
| 5801 | $context, |
|
| 5802 | 'EEM_Base', |
|
| 5803 | implode(',', $valid_cap_contexts) |
|
| 5804 | ) |
|
| 5805 | ); |
|
| 5806 | } |
|
| 5807 | } |
|
| 5808 | ||
| @@ 834-844 (lines=11) @@ | ||
| 831 | // don't give up! you gotta... |
|
| 832 | try { |
|
| 833 | //does the file exist and can it be read ? |
|
| 834 | if ( ! $path) { |
|
| 835 | // so sorry, can't find the file |
|
| 836 | throw new EE_Error ( |
|
| 837 | sprintf( |
|
| 838 | __('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'), |
|
| 839 | trim($type, '.'), |
|
| 840 | $class_name, |
|
| 841 | '<br />' . implode(',<br />', $file_paths) |
|
| 842 | ) |
|
| 843 | ); |
|
| 844 | } |
|
| 845 | // get the file |
|
| 846 | require_once($path); |
|
| 847 | // if the class isn't already declared somewhere |
|