core/db_models/EEM_Soft_Delete_Base.model.php 1 location
|
@@ 46-53 (lines=8) @@
|
| 43 |
|
* @return string |
| 44 |
|
* @throws EE_Error |
| 45 |
|
*/ |
| 46 |
|
public function deleted_field_name(){ |
| 47 |
|
$field = $this->get_a_field_of_type('EE_Trashed_Flag_Field'); |
| 48 |
|
if($field){ |
| 49 |
|
return $field->get_name(); |
| 50 |
|
}else{ |
| 51 |
|
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))); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
| 56 |
|
* Overrides parent's 'get_all' to only get undeleted ones. If you REALLY |
core/db_models/strategies/EE_Soft_Delete_Where_Conditions.strategy.php 1 location
|
@@ 32-39 (lines=8) @@
|
| 29 |
|
* @return string |
| 30 |
|
* @throws EE_Error |
| 31 |
|
*/ |
| 32 |
|
private function deleted_field_name(){ |
| 33 |
|
$field = $this->_model->get_a_field_of_type('EE_Trashed_Flag_Field'); |
| 34 |
|
if($field){ |
| 35 |
|
return $field->get_name(); |
| 36 |
|
}else{ |
| 37 |
|
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))); |
| 38 |
|
} |
| 39 |
|
} |
| 40 |
|
} |
core/db_models/EEM_Base.model.php 1 location
|
@@ 2666-2672 (lines=7) @@
|
| 2663 |
|
* @return string either ASC, asc, DESC or desc |
| 2664 |
|
* @throws EE_Error |
| 2665 |
|
*/ |
| 2666 |
|
private function _extract_order($should_be_order_string){ |
| 2667 |
|
if(in_array($should_be_order_string, $this->_allowed_order_values)){ |
| 2668 |
|
return $should_be_order_string; |
| 2669 |
|
}else{ |
| 2670 |
|
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)); |
| 2671 |
|
} |
| 2672 |
|
} |
| 2673 |
|
|
| 2674 |
|
|
| 2675 |
|
|
core/db_models/EEM_CPT_Base.model.php 1 location
|
@@ 146-153 (lines=8) @@
|
| 143 |
|
* @return string |
| 144 |
|
* @throws EE_Error |
| 145 |
|
*/ |
| 146 |
|
public function post_status_field_name(){ |
| 147 |
|
$field = $this->get_a_field_of_type('EE_WP_Post_Status_Field'); |
| 148 |
|
if($field){ |
| 149 |
|
return $field->get_name(); |
| 150 |
|
}else{ |
| 151 |
|
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))); |
| 152 |
|
} |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|