@@ 833-843 (lines=11) @@ | ||
830 | // don't give up! you gotta... |
|
831 | try { |
|
832 | //does the file exist and can it be read ? |
|
833 | if ( ! $path) { |
|
834 | // so sorry, can't find the file |
|
835 | throw new EE_Error ( |
|
836 | sprintf( |
|
837 | __('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'), |
|
838 | trim($type, '.'), |
|
839 | $class_name, |
|
840 | '<br />' . implode(',<br />', $file_paths) |
|
841 | ) |
|
842 | ); |
|
843 | } |
|
844 | // get the file |
|
845 | require_once($path); |
|
846 | // if the class isn't already declared somewhere |
@@ 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 |