core/db_models/EEM_CPT_Base.model.php 1 location
|
@@ 155-162 (lines=8) @@
|
152 |
|
* @return string |
153 |
|
* @throws EE_Error |
154 |
|
*/ |
155 |
|
public function post_status_field_name(){ |
156 |
|
$field = $this->get_a_field_of_type('EE_WP_Post_Status_Field'); |
157 |
|
if($field){ |
158 |
|
return $field->get_name(); |
159 |
|
}else{ |
160 |
|
throw new EE_Error(sprintf(__('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?','event_espresso'),get_class($this),get_class($this))); |
161 |
|
} |
162 |
|
} |
163 |
|
|
164 |
|
|
165 |
|
|
core/db_models/EEM_Soft_Delete_Base.model.php 1 location
|
@@ 45-52 (lines=8) @@
|
42 |
|
* @return string |
43 |
|
* @throws EE_Error |
44 |
|
*/ |
45 |
|
public function deleted_field_name(){ |
46 |
|
$field = $this->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 |
|
|
55 |
|
/** |
core/db_models/strategies/EE_Soft_Delete_Where_Conditions.strategy.php 1 location
|
@@ 42-49 (lines=8) @@
|
39 |
|
* @return string |
40 |
|
* @throws EE_Error |
41 |
|
*/ |
42 |
|
private function deleted_field_name(){ |
43 |
|
$field = $this->_model->get_a_field_of_type('EE_Trashed_Flag_Field'); |
44 |
|
if($field){ |
45 |
|
return $field->get_name(); |
46 |
|
}else{ |
47 |
|
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))); |
48 |
|
} |
49 |
|
} |
50 |
|
} |
core/db_models/EEM_Base.model.php 1 location
|
@@ 3004-3010 (lines=7) @@
|
3001 |
|
* @return string either ASC, asc, DESC or desc |
3002 |
|
* @throws EE_Error |
3003 |
|
*/ |
3004 |
|
private function _extract_order($should_be_order_string){ |
3005 |
|
if(in_array($should_be_order_string, $this->_allowed_order_values)){ |
3006 |
|
return $should_be_order_string; |
3007 |
|
}else{ |
3008 |
|
throw new EE_Error(sprintf(__("While performing a query on '%s', tried to use '%s' as an order parameter. ", "event_espresso"),get_class($this),$should_be_order_string)); |
3009 |
|
} |
3010 |
|
} |
3011 |
|
|
3012 |
|
|
3013 |
|
|