@@ 3524-3526 (lines=3) @@ | ||
3521 | $where_query_params = array() |
|
3522 | ) { |
|
3523 | $allowed_used_default_where_conditions_values = EEM_Base::valid_default_where_conditions(); |
|
3524 | if (! in_array($use_default_where_conditions, $allowed_used_default_where_conditions_values)) { |
|
3525 | throw new EE_Error(sprintf(__("You passed an invalid value to the query parameter 'default_where_conditions' of '%s'. Allowed values are %s", |
|
3526 | "event_espresso"), $use_default_where_conditions, |
|
3527 | implode(", ", $allowed_used_default_where_conditions_values))); |
|
3528 | } |
|
3529 | $universal_query_params = array(); |
|
@@ 5879-5890 (lines=12) @@ | ||
5876 | static public function verify_is_valid_cap_context($context) |
|
5877 | { |
|
5878 | $valid_cap_contexts = EEM_Base::valid_cap_contexts(); |
|
5879 | if (in_array($context, $valid_cap_contexts)) { |
|
5880 | return true; |
|
5881 | } else { |
|
5882 | throw new EE_Error( |
|
5883 | sprintf( |
|
5884 | __('Context "%1$s" passed into model "%2$s" is not a valid context. They are: %3$s', |
|
5885 | 'event_espresso'), |
|
5886 | $context, |
|
5887 | 'EEM_Base', |
|
5888 | implode(',', $valid_cap_contexts) |
|
5889 | ) |
|
5890 | ); |
|
5891 | } |
|
5892 | } |
|
5893 |
@@ 838-848 (lines=11) @@ | ||
835 | // don't give up! you gotta... |
|
836 | try { |
|
837 | //does the file exist and can it be read ? |
|
838 | if (! $path) { |
|
839 | // so sorry, can't find the file |
|
840 | throw new EE_Error ( |
|
841 | sprintf( |
|
842 | __( |
|
843 | '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', |
|
844 | 'event_espresso' |
|
845 | ), |
|
846 | trim($type, '.'), |
|
847 | $class_name, |
|
848 | '<br />' . implode(',<br />', $file_paths) |
|
849 | ) |
|
850 | ); |
|
851 | } |