@@ 217-219 (lines=3) @@ | ||
214 | ||
215 | $filename = $this->generate_filename ( $filename ); |
|
216 | ||
217 | if ( ! $this->EE_CSV->export_multiple_model_data_to_csv( $filename, $model_data )) { |
|
218 | EE_Error::add_error(__("'An error occurred and the Event details could not be exported from the database.'", "event_espresso"), __FILE__, __FUNCTION__, __LINE__ ); |
|
219 | } |
|
220 | } |
|
221 | ||
222 | function report_attendees(){ |
|
@@ 275-277 (lines=3) @@ | ||
272 | $model_data = $this->_get_export_data_for_models( $models_to_export ); |
|
273 | $filename = $this->generate_filename ( 'all-attendees' ); |
|
274 | ||
275 | if ( ! $this->EE_CSV->export_multiple_model_data_to_csv( $filename, $model_data )) { |
|
276 | EE_Error::add_error(__('An error occurred and the Attendee data could not be exported from the database.','event_espresso'), __FILE__, __FUNCTION__, __LINE__ ); |
|
277 | } |
|
278 | } |
|
279 | ||
280 | /** |
|
@@ 565-567 (lines=3) @@ | ||
562 | $table_data = $this->_get_export_data_for_models( $tables_to_export ); |
|
563 | $filename = $this->generate_filename ( $filename ); |
|
564 | ||
565 | if ( ! $this->EE_CSV->export_multiple_model_data_to_csv( $filename, $table_data )) { |
|
566 | EE_Error::add_error(__('An error occurred and the Category details could not be exported from the database.','event_espresso'), __FILE__, __FUNCTION__, __LINE__ ); |
|
567 | } |
|
568 | } |
|
569 | ||
570 |