|
@@ 3536-3538 (lines=3) @@
|
| 3533 |
|
$where_query_params = array() |
| 3534 |
|
) { |
| 3535 |
|
$allowed_used_default_where_conditions_values = EEM_Base::valid_default_where_conditions(); |
| 3536 |
|
if (! in_array($use_default_where_conditions, $allowed_used_default_where_conditions_values)) { |
| 3537 |
|
throw new EE_Error(sprintf(__("You passed an invalid value to the query parameter 'default_where_conditions' of '%s'. Allowed values are %s", |
| 3538 |
|
"event_espresso"), $use_default_where_conditions, |
| 3539 |
|
implode(", ", $allowed_used_default_where_conditions_values))); |
| 3540 |
|
} |
| 3541 |
|
$universal_query_params = array(); |
|
@@ 5858-5869 (lines=12) @@
|
| 5855 |
|
static public function verify_is_valid_cap_context($context) |
| 5856 |
|
{ |
| 5857 |
|
$valid_cap_contexts = EEM_Base::valid_cap_contexts(); |
| 5858 |
|
if (in_array($context, $valid_cap_contexts)) { |
| 5859 |
|
return true; |
| 5860 |
|
} else { |
| 5861 |
|
throw new EE_Error( |
| 5862 |
|
sprintf( |
| 5863 |
|
__('Context "%1$s" passed into model "%2$s" is not a valid context. They are: %3$s', |
| 5864 |
|
'event_espresso'), |
| 5865 |
|
$context, |
| 5866 |
|
'EEM_Base', |
| 5867 |
|
implode(',', $valid_cap_contexts) |
| 5868 |
|
) |
| 5869 |
|
); |
| 5870 |
|
} |
| 5871 |
|
} |
| 5872 |
|
|