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
|
@@ 2994-3000 (lines=7) @@
|
| 2991 |
|
* @return string either ASC, asc, DESC or desc |
| 2992 |
|
* @throws EE_Error |
| 2993 |
|
*/ |
| 2994 |
|
private function _extract_order($should_be_order_string){ |
| 2995 |
|
if(in_array($should_be_order_string, $this->_allowed_order_values)){ |
| 2996 |
|
return $should_be_order_string; |
| 2997 |
|
}else{ |
| 2998 |
|
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)); |
| 2999 |
|
} |
| 3000 |
|
} |
| 3001 |
|
|
| 3002 |
|
|
| 3003 |
|
|