core/db_models/EEM_CPT_Base.model.php 1 location
|
@@ 189-196 (lines=8) @@
|
186 |
|
* @return string |
187 |
|
* @throws EE_Error |
188 |
|
*/ |
189 |
|
public function post_status_field_name() |
190 |
|
{ |
191 |
|
$field = $this->get_a_field_of_type('EE_WP_Post_Status_Field'); |
192 |
|
if ($field) { |
193 |
|
return $field->get_name(); |
194 |
|
} else { |
195 |
|
throw new EE_Error( |
196 |
|
sprintf( |
197 |
|
__( |
198 |
|
'We are trying to find the post status flag field on %s, but none was found. Are you sure there is a field of type EE_Trashed_Flag_Field in %s constructor?', |
199 |
|
'event_espresso' |
core/db_models/EEM_Soft_Delete_Base.model.php 1 location
|
@@ 49-56 (lines=8) @@
|
46 |
|
* @return string |
47 |
|
* @throws EE_Error |
48 |
|
*/ |
49 |
|
public function deleted_field_name() |
50 |
|
{ |
51 |
|
$field = $this->get_a_field_of_type('EE_Trashed_Flag_Field'); |
52 |
|
if ($field) { |
53 |
|
return $field->get_name(); |
54 |
|
} else { |
55 |
|
throw new EE_Error(sprintf(__( |
56 |
|
'We are trying to find the deleted flag field on %s, but none was found. Are you sure there is a field of type EE_Trashed_Flag_Field in %s constructor?', |
57 |
|
'event_espresso' |
58 |
|
), get_class($this), get_class($this))); |
59 |
|
} |
core/db_models/strategies/EE_Soft_Delete_Where_Conditions.strategy.php 1 location
|
@@ 44-51 (lines=8) @@
|
41 |
|
* @return string |
42 |
|
* @throws EE_Error |
43 |
|
*/ |
44 |
|
private function deleted_field_name() |
45 |
|
{ |
46 |
|
$field = $this->_model->get_a_field_of_type('EE_Trashed_Flag_Field'); |
47 |
|
if ($field) { |
48 |
|
return $field->get_name(); |
49 |
|
} else { |
50 |
|
throw new EE_Error(sprintf(__('We are trying to find the deleted flag field on %s, but none was found. Are you sure there is a field of type EE_Trashed_Flag_Field in %s constructor?', 'event_espresso'), get_class($this), get_class($this))); |
51 |
|
} |
52 |
|
} |
53 |
|
} |
54 |
|
|
core/db_models/EEM_Base.model.php 1 location
|
@@ 3596-3609 (lines=14) @@
|
3593 |
|
* @return string either ASC, asc, DESC or desc |
3594 |
|
* @throws EE_Error |
3595 |
|
*/ |
3596 |
|
private function _extract_order($should_be_order_string) |
3597 |
|
{ |
3598 |
|
if (in_array($should_be_order_string, $this->_allowed_order_values)) { |
3599 |
|
return $should_be_order_string; |
3600 |
|
} |
3601 |
|
throw new EE_Error( |
3602 |
|
sprintf( |
3603 |
|
__( |
3604 |
|
"While performing a query on '%s', tried to use '%s' as an order parameter. ", |
3605 |
|
"event_espresso" |
3606 |
|
), |
3607 |
|
get_class($this), |
3608 |
|
$should_be_order_string |
3609 |
|
) |
3610 |
|
); |
3611 |
|
} |
3612 |
|
|